Skip to content

Commit b85c177

Browse files
committed
Fix Sprite.play to have the same parameters as Sprite.anims.play
1 parent b141ac4 commit b85c177

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/gameobjects/sprite/Sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ var Sprite = new Class({
4444
this.anims.update(time, delta);
4545
},
4646

47-
play: function (key, startFrame)
47+
play: function (key, ignoreIfPlaying, startFrame)
4848
{
49-
this.anims.play(key, startFrame);
49+
this.anims.play(key, ignoreIfPlaying, startFrame);
5050

5151
return this;
5252
},

0 commit comments

Comments
 (0)