Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: sean60 on July 05, 2022, 04:07:56 PM
-
I can get the player move to where I click my mouse but I cannot find a proper way to flip it. :-[
PS.it's a 2d game.
-
I think my problem is that I am not able to get a proper normalized vector2.
I used "Get position 2d" and store the vector2 variable, after that "Vector normalize" was added to normalize the variable, then "get Vector2 XY" in order to get the X from it. But the X is a negative number which I assume is not correct
And the normalized x I got from the "get mouse X" action seems fine.
Comparing the two X will result in some error.
What should i do?