How do I check if all of the object's variables are the same

Get help using Construct 2

Post » Sun Dec 06, 2015 3:32 pm

Hey guys, Im having a problem that could possibly be fixed very easily but I just can't think of a solution right now.

Im having 9 circles, each of them have a unique index (just a object variable, circle 1 is index 0, circle 2 index 1 etc.)
When you tap a circle it toggles the pressed object variable (not a boolean, im using the VeryVariable toggle method.)
Each circle can have 2 states, first one is pressed, if this is true then it will fill the circle. The second one is unpressed, if this is true it will only show the surrounding line of the circle.)

Now I want to check if ALL the circles are in the same state (the unpressed state) and if yes, I want to continue to next level.

I would really appreciate it if someone could help me with this (probably easy to fix) problem.
Image
B
13
S
2
G
1
Posts: 60
Reputation: 1,553

Post » Sun Dec 06, 2015 4:01 pm

This should work:

circle compare variable
systen compare two values: circle.pickedcount = circle,count
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 06, 2015 4:20 pm

LittleStain wrote:This should work:

circle compare variable
systen compare two values: circle.pickedcount = circle,count

This worked! Thanks for the quick reply. ;)
Image
B
13
S
2
G
1
Posts: 60
Reputation: 1,553


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests