Help with item after it gets hit/explodes
Hi there,
So, my game project is going very well, but one of the seemingly more obvious things isn't going so well-lol.
So, when my spacecraft gets hit from an enemy bullet, I set up the collission routine for the bullet and spacecraft, and it begins explosion anim sequence, lowers 1 life and then continues. Excellent!
But, how do I handle the movement and visualization of the spacecraft?
It is a single active image- no multi frames. When it is hit, it loads a new spacecraft and lives work correctly, but I never lose movement of the spacecraft and instantly have the new one to move, while the explosion is still finishing its sequence. I need to figure out how to stop the spacecraft before drawing the new one.
I have tried stop movement, stop anim, destroy, etc. Of course, destroy is perfect but then I try to restore anim and it does not show a new spacecraft- like destry is permanent :-).
I want it to hit, make its sound, disappear spacecraft, show explosion, then load new spacecraft.
The closest I can get is to set a frame pause after explosion and press space to continue, which is nice except I can still move the craft until pause happens.
Sorry for such a newbie question, but everything else is going awesome- just this one glitch.
Thanks!