T
Tiidriioblaan
Guest
I have a game where the user clicks directional buttons (Forward, Rotate Clockwise, and Rotate Counter-Clockwise), and the code for them is in scripts. The Forward script works, but the rotational scripts do not work.
Basically, an object will follow the commands given to it by the user clicking the directional buttons. Again, the rotation code doesn't work.
I've tried:
and
.
Currently, the code is
It doesn't rotate correctly, which confuses me as to why it's not working. It was working perfectly when the code was just
EDIT: Problem solved, and I thought I'd share the project. Get it Here
Basically, an object will follow the commands given to it by the user clicking the directional buttons. Again, the rotation code doesn't work.
I've tried:
Code:
for
Code:
do/until
Code:
while
Currently, the code is
Code:
dir=direction+90;
while (dir!=direction)
{
direction+=5;
image_angle=direction;
}
image_angle=direction;
Code:
direction+=90;
image_angle=direction;
EDIT: Problem solved, and I thought I'd share the project. Get it Here
Last edited by a moderator: