playMaker

Author Topic: How to flip the sprite for point&click game?  (Read 892 times)

sean60

  • Playmaker Newbie
  • *
  • Posts: 2
How to flip the sprite for point&click game?
« 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.
« Last Edit: July 05, 2022, 04:18:18 PM by sean60 »

sean60

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to flip the sprite for point&click game?
« Reply #1 on: July 05, 2022, 04:33:18 PM »
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?



« Last Edit: July 05, 2022, 04:43:51 PM by sean60 »