I have an animated sprite that only has a couple of frames, but my code is looping so quickly, you only see the last frame. Is there a way to slow down the animation without slowing down the whole game? I tried to run a loop that would just paste the same image of the sprite for half a second before pasting the next frame, but my entire game is hanging. Here's what I tried:
function explode(sprid,pointx,pointy)
slowly=timer()
stall = slowly + 500
for f=4 to 8
repeat
sprite 6,pointx-16,pointy-16,f
until slowly > stall
next f
endfunction
Is there a better way to do this, and why wouldn't the above code work?
/* You are not expected to understand this. */
Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro