Trigger under subevent in OR block

Report Construct 2 bugs here.

Post » Wed Jul 20, 2016 10:15 am

Problem Description
Triggers under subevent in OR block might not work correctly.

Attach a Capx
https://1drv.ms/u/s!Am5HlOzVf0kHlBYgqRlk7YDTu3dt

Description of Capx
Combine two triggers in OR block, put this block under a sub-event. Then the SOL might not work correctly.

Steps to Reproduce Bug
  • Step 1 : run capx
  • Step 2 : click out-side the sprite
  • Step 3 : see the message on the console

Observed Result
On touch object event had fired even object was not touched.

Expected Result
On touch object should not be triggered when clicking out-side object.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)

Operating System and Service Pack
window 7 64 bits

Construct 2 Version ID
r231



The problem will be fixed if switching the triggers OR block on top event, . But it still weird, I remembered that trigger event could be put at subevent.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Tue Aug 02, 2016 11:19 am

I can reproduce, but this involves a very tricky part of the engine. I'm not sure it will be easy to fix quickly. Hopefully it is straightforward to work around.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Bugs

Who is online

Users browsing this forum: amir2244, SamRock and 0 guests