Hi!
I’m currently making a top-down adventure game and I’m breaking my brain on this one.
I have a bunch of ‘enemies’ with pathfinding behaviour and sometimes I spawn them and tell, through events, to follow the player. So far, so good. The problem is, I can’t figure out how to change the animations of these enemies depending on their movement (4 animations - left, right, up and down; I’m not allowing diagonal movement). Is there any way to do that?
In short, I’d like to, if the enemy is moving to right, change enemy animation to B; if it’s moving left, change enemy animation to C and so on.
Thank you!!