[EDIT]
Sorry I forgot to put this in the subject!! This code is DBPro
[/EDIT]
I'm making a 2d boat driving game. The objective is to go from the start line to the finish dodging obstacles. One of the main points of the game is that the controls are slow reacting and difficult to use. When you press the up arrow, the sprite is supposed to move forward, and go faster. then the sprite slowly moves backward on the screen, maintaining its speed but giving you more vision. The sprite goes a max of halfway up the screen before auto-descending. Already I'm stuck.
`set up variables
vel#=0
ang#=0
mvlmt=0
`load images
load image "player_ship.png",1
`make sprites
sprite 1,200,300,1
scale sprite 1,20
`main loop
do
gosub controls
loop
`setup controls
controls:
if upkey()=1
inc vel#,.5
if mvlmt=0
move sprite 1,.5
endif
if sprite x(1)>Screen Height()/2
mvlmt=1
for i=1 to 100
move sprite 1,-.5
next i
endif
endif
return
doesnt work. Any help would be appretiated, and I'll see if I can make the left and right controls on my own.
Thanks in advance!