We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9536782 commit 539d70dCopy full SHA for 539d70d
1 file changed
src/tilemap/TilemapLayer.js
@@ -306,11 +306,11 @@ Phaser.TilemapLayer.prototype.postUpdate = function () {
306
this.render();
307
308
// Fixed to Camera?
309
- // if (this._cache[7] === 1)
310
- // {
+ if (this._cache[7] === 1)
+ {
311
this.position.x = (this.game.camera.view.x + this.cameraOffset.x) / this.game.camera.scale.x;
312
this.position.y = (this.game.camera.view.y + this.cameraOffset.y) / this.game.camera.scale.y;
313
- // }
+ }
314
315
// Update any Children
316
// for (var i = 0, len = this.children.length; i < len; i++)
0 commit comments