I'm trying to get the basics of sprite movement down and I have gotten far enough to move the sprite around the screen and can rotate it but turning and moving forward is a problem. You would have to load it up to really appreciate it. Also getting to see my awesome looking race track is worth it. lol
Thanks for any help.
Hoose
hide mouse
sync on : sync rate 60
set image colorkey 255,0,255
set display mode 800,600,16
movetimerset# = 1000/35 : movetimer# = timer()
rotAng=0 : sprVel=0 : sprX=400 : sprY=300
load image "media\Sprite13.bmp",1
load image "media\track.bmp",2
do
cls
paste image 2,0,0
if timer() - movetimer# > movetimerset#
if leftkey()=1
rotAng=rotAng-5
endif
if rightkey()=1
rotAng=rotAng+5
endif
if upkey()=1
sprVel=sprVel+5
endif
if downkey()=1
sprVel=sprVel-5
endif
sprite 1,sprX,sprY,1
offset sprite 1,29,29
move sprite 1,sprVel
rotate sprite 1,rotAng
movetimer# = timer()
endif
sync
loop