Phaser.Animation.frame now returns the frame of the current animation, rather than the global frame from the sprite sheet / atlas (fix #466)

This commit is contained in:
photonstorm
2014-02-21 10:31:17 +00:00
parent 251b819bdb
commit cf3796d60c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -416,7 +416,7 @@ Object.defineProperty(Phaser.Animation.prototype, 'frame', {
set: function (value) {
this.currentFrame = this._frameData.getFrame(value);
this.currentFrame = this._frameData.getFrame(this._frames[value]);
if (this.currentFrame !== null)
{