B
BenSunhoof
Guest
So here's the deal. As beginner practice, I'm making a very simple top-down shooter where my character shoots with his middle finger (yeh) which follows my mouse cursor. I've figured out how this is done, but what bothers me is that I can't change the yscale at a certain angle so that the hand turns around, otherwise it looks like the player shoots behind his back or something.
Here's what I tried to do:
But when I run the game, the hand stays in the -1 yscale at any angle, and I don't understand why. Does anyone have an idea what might be the solution?
Here's what I tried to do:
Code:
if (90 < image_angle < 270)
image_yscale = -1
else
image_yscale = 1;
Last edited by a moderator: