Demo of a growing plant similar to the one in Super Mario World.
I only implemented the "grow" part (with an export var specifying the number of segments to be grown), not the "use as a ladder" part. There're lots of tutorials describing this already: