darkdomy: Thanks for the compliments, I am glad that my code could help you out with your projects.
X Trade: This demo was to just demonstrate how the special effects are created, i.e. the smoke, shockwaves, explosions, etc. It is very simple to do what you want; however, it requires a little bit different approach, which you understand. In my demo, when the ship is shot, it immediately blows up. In your space game, when the ship is dead, you would just set a varialbe, or array, to show that it is dead. Now, if this variable, let't say "shipdead" equals one, then do not allow it to be controlled any more, but keep moving it:
Pseudo code (or, if you're Ilya, psycho code)
Ship being killed, time stored
if shipshields<=0
shipdeadtime=timer():shipdead=1
endif
This is in your main game loop, when you control your ship
if shipdead=0 then gosub controlship
gosub moveship
You just keep the ship moving, but don't intelligently control its movement; i.e. don't make it find new targets. Now, as it is dying, make it smoke and flame by finding smoke and flame objects. This is where my special effects code comes in.
if shipdead=1 then gosub shipflame
Now, in your main game loop you need to check how long it has been since it has been dead to know when to blow it up:
if shipdead=1
if timer()-shipdeadtime>7000 then gosub blowupship
endif
That is when you call the final explosion gosub and destroy the ship once and for all. Just don't create a destroyed ship object, don't add gravity to the debris, and make your debris shrink as time passes so it gradually disappears.
I hope that answered your question, I think you should be able to get it. If a lot of people really need a code example I suppose I could write one up...
Xander Moser - Bolt Software - Firewall