Destroy a single particle instance on contact

Get help using Construct 2

Post » Sun Jun 30, 2013 9:21 pm

I have a couple of particle emitters in my test level shooting out "hazards".
Upon collision with the player, I'd like to destroy that particular particle. However, when I used the destroy "particle" event on collision it destroys all particles and the emitter.

I simply can't find how to do this which seems like it should be so simple. What am I missing?
B
14
S
3
G
2
Posts: 59
Reputation: 2,180

Post » Sun Jun 30, 2013 9:27 pm

You can't do things with a specific particle, it has to be the entire thing. If you want to, you'd have to create your own particle effect with sprites
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sun Jun 30, 2013 9:32 pm

That's what I've done in the meantime but the particle system just offers all the controls (except this one) off the bat.

That's a shame - thanks for letting me know, at least I can stop searching for how to make it work now.
B
14
S
3
G
2
Posts: 59
Reputation: 2,180

Post » Sun Jun 30, 2013 9:43 pm

It is awful to use sprites while we have particles already. Scirra team should make to allow that we can pick an instance of particle. It is not your fault.
B
3
Posts: 12
Reputation: 249

Post » Sun Jun 30, 2013 10:23 pm

Using any tool incorrectly, knowing what it is and how it works, is simply the wrong way to do things.

Particles work as well as they do because they're so light in terms of CPU usage. If the engine has to track UID, position, rotation, animations/frames, collisions and all the other things that people would want (and, trust me, I'd love these features too), then the particle object as a whole would become useless for everyone else.

Admittedly, having optional toggles for these various things would be handy, but I wouldn't say this is a mandatory feature.

Making your own emitter using a spawn object and bullet-based sprites really doesn't take that long anyway.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606


Return to How do I....?

Who is online

Users browsing this forum: dop2000, mekonbekon and 36 guests