From a512763508239abbf9bfe7460cc04295272659c9 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Sun, 25 Sep 2016 22:39:59 -0400 Subject: [PATCH] Fixed fixedToCamera update for Group. --- src/core/Group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Group.js b/src/core/Group.js index 02b13d8dc..6690c316b 100644 --- a/src/core/Group.js +++ b/src/core/Group.js @@ -1663,8 +1663,8 @@ Phaser.Group.prototype.postUpdate = function () { // Fixed to Camera? if (this.fixedToCamera) { - this.x = this.game.camera.view.x + this.cameraOffset.x; - this.y = this.game.camera.view.y + this.cameraOffset.y; + this.x = (this.game.camera.view.x + this.cameraOffset.x) / this.game.camera.scale.x; + this.y = (this.game.camera.view.y + this.cameraOffset.y) / this.game.camera.scale.y; } for (var i = 0; i < this.children.length; i++)