I want to make an enemy like a Terraria Worm, and I have NO clue how. I have 3 sprites so far; Head, Body, and Tail. But I have no clue how to make it move.
Hi, I can think of two different ways to do that. In any case you probably need more than just three parts for a good worm-like movement.
I believe the “classical” way is to move the head-part, store its position coordinates in an array and use this data to move the other segments of the worm/snake accordingly.
If you don’t want to bother with arrays and setting up a movement pattern for the worm in events, you could use the ‘curved movement’-extension instead. There is an example project with several scenes. The ‘Train (top-down)’ example could be interesting for you.