How do I fade all objects pinned to an object

Get help using Construct 2

Post » Mon Mar 17, 2014 3:36 pm

Multiple instances of obj1 are created on an specific interval. Each instance of obj1 can have other object instances (obj2, obj3, objt4, etc) pinned to each obj1 instance. I would like to delete/fade only the pinned objects of the instance when the instance (obj1 -> has pinned objects -> obj2, obj3, obj4) collides with a triggerObject. Is there an easy way to know what objects are pinned to obj1 and just delete those?

Thanks
B
3
Posts: 3
Reputation: 181

Post » Mon Mar 17, 2014 3:40 pm

Put them in a family.


Family is pinned
Compare two values Family.Pin.PinnedUID
Start Fade
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Mon Mar 17, 2014 3:43 pm

Thank you for the quick response.
Quick question:
Wouldn't all objects of the family that are already pinned to other instances of obj1 that have not hit the delete trigger would also disappear?
B
3
Posts: 3
Reputation: 181

Post » Mon Mar 17, 2014 3:47 pm

Thats why you compare Family.Pin.PinnedUID with Object UID
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Mon Mar 17, 2014 7:05 pm

Thank you so much for the answer Rabenmutter. Got it working.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, osek95, zill and 36 guests