How do I make the gun flip when the cursor goes to the left? the gun just goes upside down
If gun<= MouseX()
Flip the gun
Also, it doesn’t work as intended,
You also have to do:
If gun >= MouseX()
Change the angle to MouseX() and mouseY()
If gun <= MouseX()
Change the anlge to -MouseX() and -MouseY()
1 Like
what kind of condition and actions do I use?
You did it the wrong way
See the difference between what you did and my pic
wait ill fix it sorry
I think you need to change the flip horizontally form yes to no and no to yes
Now I see this:
https://forum.gdevelop.io/uploads/default/original/3X/c/d/cd52ab9c504af4d655e19f13c9907b0c1433819f.gif
I think it was working just fine
I fixed it I looked at the shootalia template Ulises Freitas GDevelop - Shootalia - Top Down Shooter Template by Ulises Freitas
But thank you
1 Like