i have this project on making some type of top down shooter. and for the player there are 4 main animations , based on the angle position of the mouse against the player. meaning that there is a certain animation for the sprite based on the position of the mouse.
so that:
animation 1 : if the mouse is at a 45-135 angle of the sprite
animation 2 : if the mouse is at a 135-225 angle of the sprite
animation 3 : if the mouse is at a 225-315 angle of the sprite
animation 4 : if the mouse is at a 315-45 angle of the sprite
please insert image if possible.
i'm sorry if it is hard to understand.