r124-Existing Instance Variable Not Recognized

Bugs will be moved here once resolved.

Post » Mon Apr 08, 2013 7:39 pm

Link to .capx file (required!):
http://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: http://sdrv.ms/10Ano7i

Similar to this bug from a MUCH earlier build http://www.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

    
B
25
S
8
G
3
Posts: 88
Reputation: 4,012

Post » Mon Apr 08, 2013 8:39 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Apr 08, 2013 10:33 pm

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.
B
25
S
8
G
3
Posts: 88
Reputation: 4,012

Post » Mon Apr 08, 2013 10:41 pm

The condition checks if it's true. If you want to check if it's false, invert the condition.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests