Jump to content

Do not pause the game when loosing focus


titmael
 Share

Recommended Posts

//  Phaser will automatically pause if the browser tab the game is in loses focus. You can disable that here:this.stage.disableVisibilityChange = true;

Note that if you do something that stops requestAnimationFrame from running then the game will still pause. If this is an issue you need to swap to use setTimeOut instead. But try the above first.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...