I'm trying to make my program so that when I press "I" on the keyboard the current bitmap will disapear and another one will appear on the screen.
Newbie stuff I know, but when I press "I" the current bitmap dissapears, but the screen just remains blank. I cant figure out what's wrong so could someone help?
ink rgb(244,214,210),1
LOAD BITMAP "bitmap0.bmp"
LOAD BITMAP "bitmap1",1
GET IMAGE 1,0,0,82,125
LOAD BITMAP "bitmap2",2
set current bitmap 0
set cursor 0,10
REM Will wait for the user to press the space key or I key
REPEAT
IF keystate(23) = 1
instructions()
ENDIF
IF keystate(57) = 1
cls
ENDIF
UNTIL (keystate(57) = 1)
SYNC on
x = 10
y = 240
cls
DO
CurrentImage = 1
SPRITE 1,x,y, currentImage
SYNC
LOOP
END
FUNCTION Instructions()
cls
REPEAT
set current bitmap 2
UNTIL (keystate(57) = 1)
ENDFUNCTION
I've taken the unessecary code out to make it more readable for you.
Strange thing is, is that when i ste the current bitmap at the top to 2 it still comes up showing bitmap 0.
Help please.