Multiple "on destroyed"

Get help using Construct 2

Post » Tue Feb 10, 2015 8:10 am

Hello,

I'm wanting an action to occur once 3 different objects are all destroyed. I cannot link the "on destroyed" events together because there can only be one trigger per event branch. I tried using families and containers as well but they didn't work out how I wanted them to.
Families would activate the action after only one of the objects were destroyed and containers will destroy all of the objects once one was only destroyed.

Summary: How can I get an action to occur once 3 different objects have been destroyed?

Thanks
B
12
S
2
Posts: 106
Reputation: 2,188

Post » Tue Feb 10, 2015 8:18 am

When each type of object gets destroyed just set a variable, and when each variable is set, do what you want (and probably use a trigger:once). Or just keep checking object.count for each type of object.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Feb 10, 2015 9:38 am

t33hp you could do it like so
You do not have the required permissions to view the files attached to this post.
B
238
S
35
G
14
Posts: 1,916
Reputation: 39,078


Return to How do I....?

Who is online

Users browsing this forum: alajajm, LaurenceBedford, Phacanu, pokka, robopunch and 12 guests