Hello All, thank you for looking
I'm using the Pathfinding command to move an enemy around the screen. How do I determine the direction it's moving so I can apply walking animations, etc?
I found a solution. If I give the enemy an 8 direction Movement behavior (or Platform) then I can compare its MovingAngle in System and set the animations that way.
Develop games in your browser. Powerful, performant & highly capable.
There's a couple of ways. Off the top of my head, you can use the sprite->angle property to tell which direction the sprite is facing and do a an event to check if the sprite has reached its destionation yet.