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

Report Construct 2 bugs here.

Post » Sun Mar 25, 2018 4:39 pm

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
B
27
S
3
G
1
Posts: 500
Reputation: 2,355

Post » Mon Mar 26, 2018 1:01 am

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:
Image


That being said, there are problems with OR-blocks in C2.
See this comment from Ashley:
or-block-ignores-instances-picked-in-parent-event_p1152054?#p1152054
B
19
S
9
G
158
Posts: 2,384
Reputation: 84,395

Post » Mon Mar 26, 2018 1:36 pm

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.
B
27
S
3
G
1
Posts: 500
Reputation: 2,355


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest