r87 'OR' doesn't fire with inverted overlaps

Bugs will be moved here once resolved.

Post » Tue Apr 24, 2012 5:52 pm

Another quirky bit of behavior from the 'OR' blocks...

'OR' blocks fail to fire when they have both an overlap and NOT overlap condition.

Example:
Jesus is NOT overlapping the straight and narrow path (inverse overlap)
OR
Jesus is overlapping a Krull blade (ouch)
ACTION
Destroy Jesus

In this case I'd want Jesus to eat it if he is matching either one of those conditions. In r87, the block fails to fire for either event.

The attached capx demonstrates this bug and also validates that this logic works just fine when the 'OR' block is separated out into individual events.

Exmample .capx filemrabear2012-04-24 17:54:23
B
7
Posts: 13
Reputation: 855

Post » Tue Apr 24, 2012 6:04 pm

Did some further analysis and figured out that Construct will only fire the OR block when BOTH overlap events are true (as opposed to either event).

Don't know if you're already on the case, but that might be what this person was running into as well:

http://www.scirra.com/forum/or-doesnt-work_topic51262.html

EDIT:

Hrm, now that I look at it, this might be another manifestation of a previous bug that I reported as well. It's tough to know for sure without seeing the implementation underneath, but something is causing these blocks to be evaluated as traditional AND blocks rather than OR. I apologize in advance if I sent you down redundant rat holes.

http://www.scirra.com/forum/r87-or-doesnt-work-with-on-key-press-events_topic51319.htmlmrabear2012-04-24 20:31:19
B
7
Posts: 13
Reputation: 855

Post » Thu May 03, 2012 9:42 am

Thanks, should be fixed in next build!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests