If i use this examle for positioning sprites I can not see them
box 0,0,50,50
get image 1,0,0,50,50
sync on
sync rate 40
for spritei=1 to 50
sprite spritei,rnd(639)+1,rnd(479)+1,1
next spritei
cls
do
for spritei=1 to 50
if sprite exist(spritei)
sprite spritei,xpos,ypos,1
endif
xpos=xpos+51
if xpos>640:xpos=0:ypos=ypos+51:endif
if ypos>480:ypos=0:xpos=0:endif
next spritei
sync
loop
but if i position them randomly like this I can
box 0,0,50,50
get image 1,0,0,50,50
sync on
sync rate 40
for spritei=1 to 50
sprite spritei,rnd(639)+1,rnd(479)+1,1
next spritei
cls
do
for spritei=1 to 50
if sprite exist(spritei)
sprite spritei,rnd(640),rnd(480),1
endif
next spritei
sync
loop
how can i make the first method work?
This was written in DBC
The happenings of tommorow are behind us now