System pick objects in OR block unexpectedbehavior

Bugs will be moved here once resolved.

Post » Thu Aug 01, 2013 12:39 am

Link to .capx file (required!):

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:

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?
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)
Posts: 54
Reputation: 805

Post » Mon Aug 05, 2013 6:21 pm

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.
Scirra Founder
Posts: 24,106
Reputation: 190,410

Post » Mon Aug 05, 2013 10:20 pm


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:

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.

Posts: 54
Reputation: 805

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest