I have an explosion sprite that I'd like to clear from the screen when the animation is completed, but for some reason, the last frame of the animation sticks around on the screen until the sprite is triggered again. I would think the delete sprite command is what I should use, but it doesn't seem to have any effect (image attached):
set display mode 800,600,32
set window on
sync on
load bitmap "media\smboom.bmp",0
get image 1,0,0,32,32
get image 2,32,0,63,32
get image 3,64,0,95,32
get image 4,96,0,127,32
get image 5,128,0,159,32
do
if mouseclick()=1
msx# = mousex()-15
msy# = mousey()-15
for e=1 to 5
sprite 1,msx#,msy#,e
wait 100
cls
sync
next e
delete sprite 1
endif
if spacekey()=1
end
endif
loop
Any ideas?