In my platformer, I have some hedgehog, and I want they to following the player when I walk over them. What is the best way to do that?
Printable View
In my platformer, I have some hedgehog, and I want they to following the player when I walk over them. What is the best way to do that?
An easy way would be to set a flag on when you collide with the hedgehog, then when that flag is on always set the hedgehog relative -100 to the player and set its animation to walking. You can also have it set its direction to the same as your players.
There is an excellent example of this in the Clickteam Movements examples folder. It's in "Vector Example.mfa". The frame is called Follow the Leader.