korgoth Posted May 4, 2014 Share Posted May 4, 2014 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 More sharing options...
villetou Posted May 10, 2014 Share Posted May 10, 2014 Thanks for posting the solution! I was experiencing the same problems. TILE_BIAS = 32 seemed to work the best with my 32x32 based tilemap Link to comment Share on other sites More sharing options...
Recommended Posts