thanks! but if the enemy moves in 4 directions?
If the sprite goes in horizontal direction and rotates clockwise, the sprite will change the animation to go down or up but if the sprite walks in the vertical direction and rotate to the right will change the animation to walk to the right or left.
How is that done?
The sprite can be rotated at the same angle but depending on the direction that has the sprite animation can be different
thanks!