if you want to have a scrolling back ground as in a space shooter etc
rem Control scroll speed
if gameover=0
if gwrapspeed#<0.0 then gwrapspeed#=gwrapspeed#+0.1
else
use that
And if your looking for more of real feele of flying a ship use this for speeding and slowing the ship up and down.
if inkey$() = "=" then inc gwrapspeed#,0.3
if inkey$() = "-" then dec gwrapspeed#,0.3
Thanks to Ric showing me the inkey but i had to figure out how to put the actual code to gether if you no what i mean.
This is the full code for the keyboard lay out.
rem Control ship
lift=0 : firegun=0
if gameover=0 and killship=0
if upkey()=1 and sy#<350.0 then iy#=6.0 : lift=1
if fuel#<2.0 then iy#=-3.0
if downkey()=1 then iy#=-6.0 : lift=2
if leftkey()=1 and sx#>-450.0 then ix#=-6.0
if rightkey()=1 and sx#<450.0 then ix#=6.0
if spacekey()=1 then firegun=1
if inkey$() = "=" then inc gwrapspeed#,0.3
if inkey$() = "-" then dec gwrapspeed#,0.3
ix#=ix#/1.2 : iy#=iy#/1.2
sx#=sx#+ix# : sy#=sy#+iy#
position object 101,sx#,sy#,500
endif
Hope this helps and not too confusing.