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
16
S
3
Posts: 115
Reputation: 2,428

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
249
S
39
G
15
Posts: 1,952
Reputation: 40,579


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests