How do I make exhaust exist when a missile is destroyed?

Get help using Construct 2

Post » Sun Aug 02, 2015 3:49 am

So I've got a rocket that's firing missiles. When the missile is spawned, a exhaust particle spawns with it and is pinned to the back of the missile. When the missile on collision with anything, it's destroyed and the exhaust with it. The problem is that I've got the fire rate set to a pretty fast speed, this make makes it so that there are many missiles within the layout at one time (Well not "many" but there are quite a few). So when a missile is collided with something the missiles gets destroyed (That's good) and then the exhaust gets destroyed (The problem). When the exhaust is destroyed, so is every other exhaust that is attached with the other missiles that have yet to be collided.

How do I make it so that the exhaust still exists with the other missiles that have yet to be collided?

Here's the problem:

https://www.dropbox.com/s/npsn7vdeaofq7 ... .capx?dl=0
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Sun Aug 02, 2015 5:39 am

Add a Container to the Missile, and add Exhaust to it. Get rid of the Spawn action (and Exhaust destroy).
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868

Post » Sun Aug 02, 2015 7:05 am

I'm lost. So I make a container and listen to your directions but what I end up with is the missile being destroyed only and the containers and the exhaust being left behind. If I make the container and destroy then I'm basically back to square one, with something being destroyed in one place and then everywhere.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Sun Aug 02, 2015 7:25 am

i think you misunderstood the use of containers in @blackhornet answer.

see

https://www.scirra.com/manual/150/containers

https://db.tt/8Pwafmp9 capx edit r210 beta
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sun Aug 02, 2015 3:29 pm

Ahhhhhh........

That really helps and ton! Thanks guys.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Mon Aug 03, 2015 8:41 pm

Another way I've done in the past is destroy the missile, and have an event checking for, and destroying the orphaned particles.
I.E. Particles not pinned, destroy.
B
231
S
62
G
33
Posts: 902
Reputation: 40,348


Return to How do I....?

Who is online

Users browsing this forum: JDebstup, Leef, tarek2 and 25 guests