I am making a game with a friend and we need some simple movement down and I am puzzleed on how it would work I have the idea of the movement written
if mouse click is -y of player then change players orientation/sprite to down
Down = -y
if mouse click is +y of player then change players orientation/sprite to up
Up = +y
if mouse click is -x of player then change players orientation/sprite to left
Left = -x
if mouse click is +x of player then change players orientation/sprite to right
Right = +x
the capx has the sprites and diffrent angles and everything in it but I dont know how to change the sprite depending on where the mouse click is [attachment=0:1uoq5rh8][/attachment:1uoq5rh8]