Breakpoint changes how picking inside functions work

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, should be fixed in next build.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)