mirror of
https://github.com/wassname/phaser.git
synced 2026-07-24 13:10:53 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user