System pick objects in OR block unexpectedbehavior

0 favourites
  • 3 posts
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • Link to .capx file (required!):

    iu.box.com/s/erbqmp2jffivlzwrbu0y

    Steps to reproduce:

    1. Use any System pick object condition in an OR block.

    2. Place any other System pick condition picking the same objects in the same OR block after the 1st System pick condition. This should be one that will actually pick objects.

    3. Place an action that can be verified as a result of the event.

    As an example:

    <img src="http://cannedessence.com/Construct2Screens/OrBlockTest.png" border="0" />

    Observed result:

    If the first System pick object condition fails to pick any instances, then the OR fails, regardless of whether subsequent System pick object conditions would pick objects (of the same type).

    Expected result:

    The first System pick object condition to pick objects in an OR block should pick the objects for the SOL, regardless of whether one before it failed to pick any instances.

    This is the behavior for Object: condition conditions in an OR block, which is intuitive and expected.

    Using the example in the provided CAPX and image:

    Sprite: Overlapping Redpoint?

    OR

    Sprite: Overlapping Bluepoint?

    This will pick sprites overlapping Bluepoint, even if none overlap Redpoint.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8 Professional 64-bit

    Construct 2 version:

    r139 (most recent stable)

  • Thanks, should be fixed in the next build. Note however the problem was not with OR blocks in general, but the specific "is overlapping point" condition when used in an OR block. Please post new reports for any other conditions which have the same issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley

    Thank you for acknowledging the submitted report.

    However, I do still believe that this is a general System pick objects OR block bug, and not just specific to the System overlapping point condition.

    Take these events for example:

    <img src="http://cannedessence.com/construct2screens/SystemOrBlockBug.png" border="0" />

    The first event works as expected, picking Sprite with UID 0, but the second event does not work.

    I probably should have given these other examples in the original report to be more clear about the claimed issue.

    Thanks!

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