Skip to content

Commit c5d90a7

Browse files
committed
Merge pull request phaserjs#74 from cottonflop/dev
Fix for incorrect new particle positioning (issue phaserjs#73)
2 parents b0a9c64 + 40b9680 commit c5d90a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/Sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ Phaser.Sprite.prototype.reset = function(x, y) {
363363

364364
this.x = x;
365365
this.y = y;
366-
this.position.x = x;
367-
this.position.y = y;
366+
this.position.x = this.x - (this.game.world.camera.x * this.scrollFactor.x);
367+
this.position.y = this.y - (this.game.world.camera.y * this.scrollFactor.y);
368368
this.alive = true;
369369
this.exists = true;
370370
this.visible = true;

0 commit comments

Comments
 (0)