P
Polybius
Guest
Hello
I am trying to recreate a Rally X game, I am very basic at Game Maker (1.4) and I'd like to know how I can spin the car to a certain angle and then keep the car facing that angle, for example say that the car starts the room facing 0° and I want to spin it to the left (180°) and once it gets there it doesn't move its angle anymore.
What I tried:
But as I press left it keeps spinning.
Thanks for any support.
I am trying to recreate a Rally X game, I am very basic at Game Maker (1.4) and I'd like to know how I can spin the car to a certain angle and then keep the car facing that angle, for example say that the car starts the room facing 0° and I want to spin it to the left (180°) and once it gets there it doesn't move its angle anymore.
What I tried:
Code:
image_angle=image_angle+10;
if (image_angle==180)
{
image_angle=180;
}
direction= image_angle;
But as I press left it keeps spinning.
Thanks for any support.
Last edited by a moderator: