Problem Description
Problem using dicionary's keys to store doors & keys lock/unlock states.
Depending of the orders the dictionary keys are being called...it works or it doesnt...
If i click the red key (red square) first and then the yellow one, it works.
If I click the yellow first and then the red one, it doesnt.
Capx
https://www.dropbox.com/s/5vd9zmtrcwx1xpx/dictionary_bug.capx
Description of Capx
2 objects: 1 door, 1 key, each one instanced 2 times (red & yellow)
2 instances variables: door_number, key_number
2 dictionary key: door_1, door_2
Screenshot of the event_sheet, in case the problem can be spotted from there:
Affected Browsers
- Chrome: (YES)
- FireFox: (?)
- Internet Explorer: (YES)
Operating System and Service Pack
Win 7 32bits SP1
Construct 2 Version ID
r166