r124-Existing Instance Variable Not Recognized

0 favourites
  • 4 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Link to .capx file (required!):

    sdrv.ms/11KdktE

    Steps to reproduce:

    1. Create a new object (sprite) or use an existing one

    2. In the Object Properties, create add a new Instance Variable (Boolean) and leave the default setting of false. Name the Variable.

    3. On the event sheet, create a new event.

    4. Select the object from step 1, click next.

    5. Scroll down and select Instance Variable>Compare Instance Variable

    6. Dropdown appears, no Instance Variable listed. It says "<none, add instance variable first>",

    Observed result:

    Dropdown appears, no Instance Variable listed. It says "<none, add instance variable first>",

    Screenshot: sdrv.ms/10Ano7i

    Similar to this bug from a MUCH earlier build scirra.com/forum/compare-instance-variable-check-failure_topic44665.html

    Expected result:

    To see the instance variable displayed. I can see it if I back up and try the Instance Variables>Is Boolean value set condition.

    Browsers affected:

    Chrome: yes/no

    Firefox: YES/no

    Internet Explorer: YES/no

    Operating system & service pack:

    Windows 8 RTM

    Construct 2 version:

    beta r124

  • Closing, this is by design, just use 'Is boolean variable set' instead. It's done this way because 'Compare' allows things like greater than, less than etc. which doesn't make sense when comparing a boolean value.

  • Ok. I am trying to have an animation play based on the Boolean state. So the "is Boolean variable set" is the right way to go? It didn't seem to give me an option of finding the state of the variable, if it is currently true or false.

    Thanks for the fast response, Ashley.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The condition checks if it's true. If you want to check if it's false, invert the condition.

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