I have the code right to make the car move but the turning doesn't work. I thought I could achieve this simply by rotating the sprite but this doesn't work right with me.
The car sprite is from GTAzz(http://azz.gouranga.com/carmanager2/cars.shtml)
Rem Project: Car Game
Rem Created: 2/23/2008 8:00:08 PM
Rem ***** Main Source File *****
sync on
sync rate 30
load image "C_CAR3_81.bmp",1
Create Animated Sprite 1,"C_CAR3_81.bmp",8,2,1
Set Image ColorKey 255,0,255
Sprite 1,200,400,1
Set Sprite Frame 1,12
topspeed = 10;
accel = 0;
vel = 0;
air_res = 0;
do
Set Cursor 0,0
Print vel
Print accel
if UpKey()=1
accel = 1
vel = vel + accel
else
if vel > 0
accel = 1
vel = vel - accel
endif
endif
if RightKey()=1
Rotate Sprite 1,10
endif
if LeftKey()=1
Rotate Sprite 1,-10
endif
if vel > topspeed
vel = topspeed
endif
Move Sprite 1,vel
Sprite 1,Sprite X(1),Sprite Y(1),1
sync
loop