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

  • 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.

  • This should work:

    circle compare variable

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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This should work:

    circle compare variable

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

    This worked! Thanks for the quick reply.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)