How do I check if at least 5 out of 6 conditions are true?

Get help using Construct 2

Post » Thu Apr 27, 2017 4:33 pm

Or, how do I check if only one of the conditions are false? Does Construct2 have an exclusive-or operator?
B
6
S
1
Posts: 14
Reputation: 380

Post » Thu Apr 27, 2017 5:06 pm

@aaronfranke Maybe something like this:

Create a global variable

For each condition that you're testing:
when true, trigger once: add one to global variable
when false, trigger once: deduct one from global variable

If global variable = 5: do your thing
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Thu Apr 27, 2017 10:35 pm

Right click the left side of an event and choose: make OR-block, or something like that.
B
13
S
7
G
2
Posts: 6
Reputation: 2,187


Return to How do I....?

Who is online

Users browsing this forum: ome6a1717 and 16 guests