R86 script unresponsive with repeated keypress

0 favourites
  • 5 posts
  • Hi All,

    Testing on Win7 (64bit) with Firefox11 and IE9, I got the following when rapidly and repeatedly pressing the up arrow (IE just hangs, but Firefox gives the error message):

    "Warning: Unresponsive Script

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

    Script: localhost/eveng.js:377%22

    Each error response gives a different line number.

    The .capx is here:


    Not sure if my events are configured in a way that causes the error (I'm wondering if it's the OR block), but I figured I'd post it.


  • I've isolated the problem. Subtracting from the "PlayerFuel" variable (in Event 14) causes the hang. Not sure why, though. Maybe it's a race situation where it subtracts faster than it can update?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK,

    I figured out a structure which gives the desired behavior without the error.

    Here are images of the error structure:

    <img src="http://dl.dropbox.com/u/47015043/error.PNG" border="0" />

    ...and the no error structure:

    <img src="http://dl.dropbox.com/u/47015043/no-error.PNG" border="0" />

    Maybe it's possible to raise a warning flag in C2 for structures that appear valid but which create bad loops (which is I think what happened)? Although maybe I'm still just getting used to the ropes of C2.


  • How do I reproduce the hang in the .capx? I tried moving about for a bit and it worked fine in my dev copy of r87 (out soon). Mind you, I've changed the way OR works in the next build, so it may be that it's already fixed. Please let me know if it still happens in r87 when it's out and I'll take another look.

  • Appears to be fixed in r87. Thanks, Ashley!

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