Prevent pausing when not in focus?

Get help using Construct 2

Post » Sat Aug 04, 2012 7:44 pm

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?
B
19
S
5
G
1
Posts: 104
Reputation: 2,920

Post » Sun Aug 05, 2012 6:31 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests