OR picking bug

Bugs will be moved here once resolved.

Post » Sat May 07, 2016 5:48 am

Problem Description
Event fails to fire due to an OR block.

Attach a Capx
https://onedrive.live.com/redir?resid=7 ... ile%2ccapx

Description of Capx
It should print tickcount to the text object every tick, but fails to do so.

Steps to Reproduce Bug
  • create an Or where one condition is true and another is false.
  • then a sub-event that references the false condition's object.

Observed Result
object doesn't get picked?

Expected Result
tilemap should get picked and event fire.

Affected Browsers
  • Chrome: (YES/NO)
  • FireFox: (YES/NO)
  • Internet Explorer: (YES/NO)

Operating System and Service Pack
win vista

Construct 2 Version ID
r227
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Mon May 23, 2016 12:00 pm

Closing as not a bug. This is a common misunderstanding of OR blocks.

The OR block runs because the system expression is true. No Tilemap instances matched the "Tile (1, 0) = 0" condition, so there are zero instances picked. Testing a condition with zero instances picked cannot find that any are true, so the event does not run.

If it worked like you wanted, it would mean running actions on instances which did *not* meet the event conditions, which entirely contradicts the way events work.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest