#CONSTANT VSPRITES 16
#CONSTANT HSPRITES 30
#CONSTANT SIZE 16
#CONSTANT TILESET "tiles.png"
ImageNum = 1
sync on
sync rate 0
load bitmap TILESET,1
set current bitmap 1
for x = 1 to HSPRITES
for y = 1 to VSPRITES
get image ImageNum, (x-1) * SIZE, (y-1) * SIZE, x * SIZE, y * SIZE
inc ImageNum, 1
next y
next x
set current bitmap 0
ImageNum = 1
do
cls
print ImageNum
paste image ImageNum, 30, 30
inc ImageNum, 1
sync
wait key
loop
In the above code why is Image number 1 skipped. Actually I dont think its skipped just when it should be displaying the image the screen is black then when you hit a key it goes to image 2,3,4,etc.