mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #2771 from kevinAlbs/dev
Fixed fixedToCamera update for Group.
This commit is contained in:
commit
27fd72c06f
1 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue