Skip to content

Commit 1491d0b

Browse files
committed
Merge pull request phaserjs#1041 from Dumtard/dev
AnimationManager does not update currentFrame on play until second frame
2 parents 82ef6d4 + 31cc247 commit 1491d0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/animation/AnimationManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ Phaser.AnimationManager.prototype = {
259259

260260
this.currentAnim = this._anims[name];
261261
this.currentAnim.paused = false;
262+
this.currentFrame = this.currentAnim.currentFrame;
262263
return this.currentAnim.play(frameRate, loop, killOnComplete);
263264
}
264265
}

0 commit comments

Comments
 (0)