Wheel=CreateSprite(0)
SetSpriteSize(Wheel,20,20)
SetSpritePosition(wheel,100,100)
Speed=10
do
//check left key
if getrawkeyState(37)=1 then setSpriteAngle(Wheel,GetSpriteAngle(Wheel)-Speed)
//Check right key
if getrawkeyState(39)=1 then setSpriteAngle(Wheel,GetSpriteAngle(Wheel)+Speed)
Sync()
loop
The "speed" variable name is not entirely correct. It should be called "AnglePoints" as it tells your program to add or subtract the given angle points to the angle of your sprite. But in effect the sprite rotates faster/slower with a higher/lower number. To get more precision it could also be changed to a float: Speed#=10.0
I never want what I know.