Keep game running in background

Get help using Construct 2

Post » Thu Jun 21, 2012 9:46 pm

For Flash, I can set a timer that fires off every 15 seconds or so.

For construct, i'm actually connected to a NodeJS server with the SocketIO Plugin.

But when the game isn't in the foreground, it doesn't want to run or send data.

How do we keep the game alive when people aren't looking at their browser for a short period?
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Fri Jun 22, 2012 12:40 am

Most browsers limit games to running at one frame per second in inactive tabs. Construct 2 just automatically pauses the game instead of running at 1 FPS. Why do you need to update when the app is paused? Can't you re-sync when it comes back in to view?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jun 22, 2012 1:58 am

I'm actually trying the resync direction now. A simpler solution would be no pausing.

Users will have to sometimes minimize the game to look up data on our Wiki.

Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637


Return to How do I....?

Who is online

Users browsing this forum: h1k3, LeFuji and 17 guests