I'm currently doing a top down game, using 8 directional movement, but its limited to 4 currently.
I'm using W,A,S,D keys to move the player.
If you hold 2 buttons at the same time (like A and W if you were trying to move diagonally) the characters animation stops.
I've tried telling it that if W and A are down in the same condition to play the "up" animation but it doesn't work.
Instead, his animation stops completely, but his movement still continues upward. Is there any way to fix that?
I have exactly the same problem, when I press 2 keys at same time the animation stop in the first frame of the last button I press.
Develop games in your browser. Powerful, performant & highly capable.
Try comparing the objects VectorX and VectorY to decide which animation to play.
Thanks encrypted cow! Now, forgive me for being stupid but how would I do that? Lol
Use the "Compare Two Values" condition in System, and check if Sprite.8Direction.VectorX > 0. If it is, that means the player is moving right. If it's less than 0, they're moving left. Then do the same for up down using VectorY.