Hi,
Thats one crazy piece of code:
function updatescreen()
for done=1 to 35
if spriteexist(done)=1
sprite done,spritexpos(done),spriteypos(done),frame(done)
else
if sprite exist(done)=1 then delete sprite done
endif
next done
endfunction
1). You need to put a space between sprite and exist on line 3
2). The else part of your if statement won't do anything because at that point sprite exist(done) will *always* equal 0.
3). Change line 4 to: Sprite done,SPRITE X(done),SPRITE Y(done),frame(done)
4). Check that frame(done) returns an existing image.
Level Maker 3D: Download from www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: Download from www.levelmaker3d.co.uk/ide.asp