How do I verify if all text instances variables = true

Get help using Construct 2

Post » Thu Jan 01, 2015 12:27 pm

I've 10 text instances and 10 sprites. I need to verify if all text instances are overlapping the correct sprite. When an instance overlap the correct sprite, I change the boolean variable from "false" to "true". Now I need to know if the variable of all text instances are true. Thanks for any help.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Thu Jan 01, 2015 1:09 pm

Pick all the text objects with the variable set to true and then check if Text.PickedCount == Text.Count.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Thu Jan 01, 2015 3:33 pm

@ramones : Thank you so much! I totally forgot about "PickedCount. Happy new year!
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 25 guests