Merge pull request #1041 from Dumtard/dev

AnimationManager does not update currentFrame on play until second frame
This commit is contained in:
Richard Davey 2014-07-18 00:15:00 +01:00
commit 1491d0ba0f

View file

@ -259,6 +259,7 @@ Phaser.AnimationManager.prototype = {
this.currentAnim = this._anims[name];
this.currentAnim.paused = false;
this.currentFrame = this.currentAnim.currentFrame;
return this.currentAnim.play(frameRate, loop, killOnComplete);
}
}