thanks for help so far, but still getting a bit stuck.
below is the code for when i collide with the sides of the screen or another sprite
play sound 1
seq1 = 1
load bitmap "ani5.bmp",4
for y=0 to 256 - 63 step 64
for x=0 to 256 - 63 step 64
get image seq1,x,y,x + 64,y + 64,1
inc seq1
next x
next y
delete bitmap 4
ani = 1
sync on
do
paste image ani,xpos#,ypos#, 1
ani = ani + 1
if ani > 16 then exit
sync : sleep 50
loop
I have two sprites on the screen, sprite 1 is the ship and sprite 2 is a block I have to avoid. with the above code when I collide, both sprites get deleted although the explosion occurs in the right place. I dont want sprite 2 to disappear.
I know u suggested changing the image attached to the sprite, where in the above code would I do that, perhaps someone could provide an example?
I adapted the above animation from code elsewhere in these forums so I dont pretend to understand it inside out.
any further help would be appreciated.
err help..