Prevent pausing when not in focus?

0 favourites
  • 2 posts
From the Asset Store
Antisuspend Plugin for Construct 3 prevents the runtime from getting suspended.
  • Construct by default pauses the application when it is not the main focus, for example the iPod returns to the home menu or the web browser switches to another tab.

    This is normally great, but I might not want that for some slow-paced games that need to run background code when absent. Also, games may create glitches when paused and resumed in this manner.

    Is there any way to negate this "pause when unfocused" behavior?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Some browsers automatically pause the game when it's not in focus, so you can't reliably keep a game running in the background anyway. This is especially important on mobile where users get very annoyed with any apps which continue to drain battery even when in the background. So I don't think this can be changed.

    You can use the wallclocktime system expression to calculate how long the game was in the background for, but that's about it.

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