Jump to content

Keep the game running when switching tabs?


Recommended Posts

I've been searching for a way to make sure that the game doesn't pause when switching tabs.



I've tried using:

game.stage.disableVisibilityChange = true;

But this only works if the window is open, if I switch tabs it does nothing.



I've also tried using forceSetTimeOut:

var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game', { preload: preload, create: create, update: update});game.config.forceSetTimeOut = true;

I read on several Phaser posts that this should enable it, but it hasn't done anything, maybe I'm doing something wrong.


Does anyone know how I can get this working? I've been searching and testing for hours but still have nothing.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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