Breakpoint changes how picking inside functions work

Bugs will be moved here once resolved.

Post » Fri Mar 28, 2014 1:38 am

Problem Description
Picking an object inside a function via the "pick overlapping point" system condition doesn't work, unless you have a breakpoint set somehwere.

Description of Capx
There is a function, called at the beginning of the layout, that destroys an object overlapping a point.
There is also a breakpoint in the event that calls the function.

Steps to Reproduce Bug
  • Run the project normally
  • The blue sprite remains
  • Run the project in debug mode
  • Press "continue"
  • The blue sprite is destroyed

Observed Result
The blue object remains if the project is ran normally.
However, in debug mode, the breakpoint "pauses" the project. When you press continue, the object is destroyed.

Expected Result
The object should be destroyed regardless of whether you have a breakpoint or not.

Workaround
Add a "Wait 0 seconds" system function above the function calling event.

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: As if I would run this thing...

Operating System and Service Pack
Windows 7 x64

Construct 2 Version ID
Release 165 (64-bit) checked
You do not have the required permissions to view the files attached to this post.
B
36
S
8
G
8
Posts: 532
Reputation: 6,903

Post » Thu Apr 03, 2014 5:20 pm

Thanks, should be fixed in next build.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,486


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 7 guests