Jump to content

Do not pause the game when loosing focus


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


  • Recently Browsing   0 members

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