Overlap-event in an or-block, blocks the other events

0 favourites
  • 3 posts
From the Asset Store
Physics Block Puzzle game template for Construct 3
  • Problem Description

    If an 'is overlaping' event is with other events in one OR-Block, the other events are ignored.

    Is the overlaping event is outside the or-block it works.

    Attach a Capx

    https://drive.google.com/uc?export=down ... 114l0M3Mm_

    Description of Capx

    A sprite that moves from left to right. If it's overlaps an other sprite (wall) or is outside the viewport it changes the direction.

    Steps to Reproduce Bug

    • load the capx
    • run it

    Observed Result

    The sprite change direction when it overlaps an other sprite but ignored if it's outside the viewport.

    Expected Result

    Not ignoring the other two events in the or-block.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)

    Operating System and Service Pack

    Windows 7 SP 1

    Construct 2 Version ID

    C2 R256

    C3 R89

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Probably not a bug.. I think what happens is the first "Is overlapping" condition picks instances of Team1 object. So the remaining System conditions in this event are comparing X for picked instances only. If "Is overlapping" picked 0 instances, then the rest of OR block has nothing to compare.

    If you change the event like this, it works:

    That being said, there are problems with OR-blocks in C2.

    See this comment from Ashley:

  • It works with the 'On collision with another object' . Isn't this an 'Is overlapping' with 'triggered once'?

    The same problem occurs in C3 too.

    However, even if it's a problem with picking it is still a bug. If it's not working correctly it should be mentioned in the manual that OR isn't working reliable.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)