This may help...
if upkey() = 1
if spd# < spd_max#
inc spd#,(spd_acc#*2)
if spd# > spd_max# then spd# = spd_max#
` **** REMOVE *** move object 1,spd#
endif
endif
rem -- SPEED DOWN
if downkey()=0
if upkey()=0
if spd# > 0
dec spd#,(spd_acc#*4)
endif
if spd# < 0 then spd# = 0
` **** REMOVE *** move object 1,spd#
endif
endif
`breake
If spacekey()=1
if spd# > 0
dec spd#,(spd_acc#*7)
if spd# < 0 then spd# = 0
endif
endif
` *** ADD THE FOLLOWING LINE...
move object 1,spd#
You want to move the car every loop, regardless of whether a key is pressed, and regardless of whether the car has reached top speed. Your code only moved the car when a key was pressed, AND the max/min speed was not reached.
BatVink
