Skip to content

Commit 3a6f093

Browse files
authored
Merge pull request phaserjs#3761 from DannyT/fix/buildgameobjectanimation
Fix setter calls in BuildGameObjectAnimation
2 parents 30276cd + 1eb60e0 commit 3a6f093

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/gameobjects/BuildGameObjectAnimation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ var BuildGameObjectAnimation = function (sprite, config)
5858
var play = GetAdvancedValue(animConfig, 'play', false);
5959
var delayedPlay = GetAdvancedValue(animConfig, 'delayedPlay', 0);
6060

61-
anims.delay(delay);
62-
anims.repeat(repeat);
63-
anims.repeatDelay(repeatDelay);
64-
anims.yoyo(yoyo);
61+
anims.setDelay(delay);
62+
anims.setRepeat(repeat);
63+
anims.setRepeatDelay(repeatDelay);
64+
anims.setYoyo(yoyo);
6565

6666
if (play)
6767
{

0 commit comments

Comments
 (0)