How do I deal with UID ?

Get help using Construct 2

Post » Thu Apr 23, 2015 10:39 am

I have a rocket that creates a pinned particle effect.
As soon there are more rockets and one get's destroied...all particles of all rockets disapear.
I need only the destroyed rocket's particle destry too. Not all of them. UID is very very abstract for me and quite hard to understand how to deal with...I watched several posts and the help...but did not be able to solve my problem. Can you show me a sample to my problem ? thanks so much guys...
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Thu Apr 23, 2015 11:23 am

My guess is using container would be the best solution for this..

Using uid is ofcourse also possible.

It would mean that while pinning the particles you could set an instance variable on the rocket to particle.uid
and on rocket destroyed - pick particles by unique ID = rocket.variable
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Apr 23, 2015 9:17 pm

thanks a lot :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865


Return to How do I....?

Who is online

Users browsing this forum: guannstar, marcinkowski and 18 guests