Skip to content

Commit e91d40b

Browse files
committed
fix for ’jitter’ in scrolling where tilemaps & sprites are one frame off from each other
Fixes phaserjs#214
1 parent a9a46bf commit e91d40b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/World.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ Phaser.World.prototype.update = function () {
113113
*/
114114
Phaser.World.prototype.postUpdate = function () {
115115

116-
this.camera.update();
117-
118116
if (this.game.stage._stage.first._iNext)
119117
{
120118
var currentNode = this.game.stage._stage.first._iNext;
@@ -131,6 +129,7 @@ Phaser.World.prototype.postUpdate = function () {
131129
while (currentNode != this.game.stage._stage.last._iNext)
132130
}
133131

132+
this.camera.update();
134133
}
135134

136135
/**

0 commit comments

Comments
 (0)