dbpro: I tried using the move sprite command but that seem to be only for velocity witch is up and down i want to be able to move it from side to side using the arrow keys. i tried if
rightkey()=1 then sprite x(1)-2
leftkey()=1 then sprite x(1)+2
when i do this i get a compiler error message however i would like to note it was shown this way in the examples.
i also have the problem of once the sprite is moved it just moves back to where it previously was because the gam loop repeats the sprite 1,200,200,1 and draws it to the smae place each time it repeats i would appriciate the help very much getting nowhere very fast.
set display mode 800,600,32
load bitmap "game.bmp",0
load bitmap "penut.bmp",1
get image 1,462,1,510,173
get image 2,542,1,593,170
sync on
do
sprite 1,100,350,1
load bitmap "game.bmp",0
sync
wait 120
sprite 1,100,350,2
load bitmap "game.bmp",0
sync
wait 120
load bitmap "game.bmp",0
set current bitmap 0
load bitmap "game.bmp",0
if rightkey()=1 then move sprite 1,2
if leftkey()=1 then move sprite 1,-2
sync
loop
media is not attachet
thankyou