Jump to content

Arcade Physics bug when switching browser tab?


Recommended Posts

When i switch browser tab then back to the game tab the player sprite is fall through the floor. Steps to reproduce:


- open this link http://baldricksoft.com/csuszos/  need a few sec till load. Tilemap layer and player debug info is turned on.
- wait until the player sprite reach the first wall

- switch browser tab then back to the game tab

- watch how the sprite fall through the floor and die


Any idea how to avoid that?


The code is mostly from the phaser examples.


UPDATE: Its only happens with this.game.stage.disableVisibilityChange = true;  it is normal?


SOLUTION: if some1 have the saem problem, adjust the this.game.physics.arcade.TILE_BIAS to 64;

Link to comment
Share on other sites


  • Recently Browsing   0 members

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