Fixed fixedToCamera update for Group.

This commit is contained in:
Kevin Albertson 2016-09-25 22:39:59 -04:00
parent 4cc18e2df4
commit a512763508

View file

@ -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++)