I don;t understand why this code won't work, here it is:
set display mode 800,600,32
HIDE MOUSE
SYNC ON
SYNC RATE 15
LOAD bitmap "C:\Dark Basic\Fighter.bmp",1
FOR i=1 to 4
GET IMAGE 1,(i-1)*100,0,i*100,125
NEXT i
stillframe = 1
runstartframe = 1
runendframe = 4
frame = stillframe
do
IF RIGHTKEY()
INC frame
IF frame > runendframe THEN frame = runstartframe
ELSE
frame = stillframe
ENDIF
SPRITE 1,100,100,frame1
SYNC
LOOP
Insted of playing the 4 frames in order, it playes the last fram, then 2 black screens, then the last screen again. Plese help!
(my bitmap is 4 frames, each 100X125)
As I walk through the vally of the shadow of death, I will fear no evil.