Merge pull request #2771 from kevinAlbs/dev

Fixed fixedToCamera update for Group.
This commit is contained in:
Richard Davey 2016-09-26 20:40:40 +01:00 committed by GitHub
commit 27fd72c06f

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