I have a ship, you press Z to spawn missile and particles. Missile has physics behavior and particles have pin behavior.
I pin particles to missile. they go flying into wall or off screen.
when on collision with wall or off screen, I use events to destroy missile and particles.
PROBLEM- when multiple missiles (and thus multiple particles) are on screen, particles get destroyed in all cases, the missiles get destroyed one by one as spawned
It was my understanding that events calling destroy pick on the order of spawn to destroy.
where am I going wrong? is there another way to group different objects, have them act as one, and destroy as one?
This link should work