mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Fixed fixedToCamera update for Group.
This commit is contained in:
parent
4cc18e2df4
commit
a512763508
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…
Add table
Reference in a new issue