Problem Description
OR blocks are not properly registering as a TRUE condition when one or more of the condition lines indicates TRUE.
Attach a Capx
link to capx
Description of Capx
The layout contains a TiledBackground (TB) and a sprite (with 8-direction behaviour, so you can move the sprite to overlap the TB). There are 3 groups in the event sheet, 2 of them are disabled so that only one group runs during testing.
If the mouse or the sprite overlaps the TB then it is set invisible. Group 1 works correctly with separate events to check for the overlaps. Groups 2 and 3 contain OR block checks of the mouse + sprite overlap, with the order of the conditions swapped in each group.
Steps to Reproduce Bug
- Run the layout with only Group2 enabled and observe when the TB is set invisible with mouse / sprite overlapping it.
- Run the layout with only Group3 enabled and observe when the TB is set invisible with mouse / sprite overlapping it.
Observed Result
As described in the Group comments, the OR blocks in Groups 2 and 3 do not work correctly. The Group2 OR block works like an AND (sort-of...), and the Group3 works only when there is a mouse overlap.
Expected Result
Each OR block should register as TRUE if one or more of the lines in the block registers as TRUE.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
W10 x64
Construct 2 Version ID
r227 64 bit