Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

keep running on losing focus


magnator
 Share

Recommended Posts

Ah, like this:

var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });function preload() {   game.stage.disableVisibilityChange = true;   // the rest of your preload stuff here}

You shouldn't re-create the Stage like you did in your code above, but more importantly you should put ALL phaser game code inside one of the key functions (preload, create, update) otherwise it will mostly fail to run.

Link to comment
Share on other sites

  • 1 year later...
  • 4 months later...
 Share

  • Recently Browsing   0 members

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