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
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.
The object should be destroyed regardless of whether you have a breakpoint or not.
Add a "Wait 0 seconds" system function above the function calling event.
- 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