How do I prevent HTML5 game from suspending?

266 views Asked by At

I am making an HTML5 game with Construct 2 and face one little problem: once I switch tab I get my game paused(suspended)

I have cleared the default engine suspension by calling "cr_setSuspended = function() {}" and now I don't receive messages about it in the log, but the game pauses anyway.

Maybe there is some browser stuff that suspends it automatically and I can prevent it? Please help me to find a solution

1

There are 1 answers

0
Modemi4 On

If I avoid all the timers, "wait" and "every x seconds" events and use triggers only everything works fine, even for Photon multiplayer