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
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

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
402
S
238
G
89
Posts: 24,628
Reputation: 196,023


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests