sync rate 60
sync on
backdrop off
load bitmap "media\800x600.jpg"
sprite 1,0,0,1
sprite 1,x1,y1,2
spr = 2
repeat
tv# = tv# + 0.01
set sprite texture coord spr, 0, 0.0, 0.0 + tv#
set sprite texture coord spr, 1, 1.0, 0.0 + tv#
set sprite texture coord spr, 2, 0.0, 1.0 + tv#
set sprite texture coord spr, 3, 1.0, 1.0 + tv#
if upkey()=1 then spr=2
if downkey()=1 then spr=1
sync
until spacekey()=1
ok so theres the code... now, my prolem is when i hit run i get a error message saying "Runtime error 501 image number illegal at line 12"
any help, be very thankful.
thanks.