Quote: "FYI, you can increase the speed of the rotation by changing the amount of angle difference from 2 to anything that will divide evenly into 90. So if you add / subtract 5, for example, from the current Y angle instead of 2, it will rotate quicker."
Ok,I see, what I wanted was when I push the right key one time the whole frog turns all the way around and a 90 degree turn slowly. It was I had to hold the right and left key,But I used your code and did this,and it works great.I will play around with it more.
if rightkey()=1 then turnright=1
if turnright=1 and jumptimer=0 and turning = 0 and ground = 1 then turning = 4 : ang# = wrapvalue(object angle y(2) + 90.0)
if leftkey()=1 then turnleft=1
if turnleft=1 and jumptimer=0 and turning = 0 and ground = 1 then turning = 8 : ang# = wrapvalue(object angle y(2) - 90.0)
if turning = 4
turnleft=0:moveup=0:movedown=0
YRotate Object 2, WrapValue(Object Angle Y(2) + 2)
if object angle y(2) = ang# then turning = 0:turnright=0
endif
if turning = 8
turnright=0:moveup=0:movedown=0
YRotate Object 2, WrapValue(Object Angle Y(2) - 2)
if object angle y(2) = ang# then turning = 0:turnleft=0
endif
if upkey()=1 then moveup=1
if moveup=1 and ground = 1 then move=4
if move=4
turnleft=0:turnright=0:movedown=0
move object 2,1
ENDIF
if downkey()=1 then movedown=1
if movedown=1 and ground = 1 then move=8
if move=8
turnleft=0:turnright=0:moveup=0
move object 2,1
ENDIF
if movedown=1 and ground = 0 then move object 2,-1
if ground=1 then movedown=0:moveup=0:move=0
my signature keeps being erased by a mod So this is my new signature.