I have a problem with my rockets in this little Space Shooter game I'm working on.
Using Z and C you can fire rocket to the enemy. With each rocket, i also spawn a rocket exhaust sprite just to make it look cool. On collision with an enemy, the rocket is destroyed (as in removed). Any other rockets keep flying forward. I also tell it to destroy the rocket exhaust but instead of destroying the exhaust of the rocket that hit the enemy all the exhaust from all the rocket currently on the screen are destroyed as well. :o
You can see it here: Space Shooter
Wait for an enemy to appear and fire a bunch of rockets at it using Z and/or C. When one hits the enemy, you'll see that the rocket exhaust of all the other rockets are killed as well. I only want to kill the exhaust of the rocket that hit the enemy.
How can i fix this?