#Changing character direction on mouse click

1 messages · Page 1 of 1 (latest)

earnest matrix
#

So i have my character move where i click the mouse but want him to flip direction when moving from left to right (so hes facing the right way).
I have this code but it doesnt seem to work. Can anyone find the solution

mortal igloo
#

use the global_position of the character instead of its position
When using coordinates, make sure all coordinates are either local to the same object or global. Otherwise you'll get weird results