I was wondering how to draw a Texture2D sprite to appear as if a vine is growing upwards, like in Super Mario Bros. Are there any options to make this work?
I found this and this but it's not quite what I'm looking for.
I'm relatively new to game development so I'm not sure where to start. Thank you in advance.
The simplest way would be to draw the full-length vine as one sprite, load it as a
Texture2D, and then on each frame draw it at a different y-coordinate offset so it appears to move across the screen. Once you have a moving vine, you need to clip a portion of it so it appears to grow out of a reference point. You can achieve this by calculating the right coordinates for thesourceRectangleanddestinationRectangleof theSpriteBatch.Drawmethod.