Merge pull request #3761 from DannyT/fix/buildgameobjectanimation

Fix setter calls in BuildGameObjectAnimation
This commit is contained in:
Richard Davey 2018-06-19 13:22:13 +01:00 committed by GitHub
commit 3a6f093579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,10 +58,10 @@ var BuildGameObjectAnimation = function (sprite, config)
var play = GetAdvancedValue(animConfig, 'play', false);
var delayedPlay = GetAdvancedValue(animConfig, 'delayedPlay', 0);
anims.delay(delay);
anims.repeat(repeat);
anims.repeatDelay(repeatDelay);
anims.yoyo(yoyo);
anims.setDelay(delay);
anims.setRepeat(repeat);
anims.setRepeatDelay(repeatDelay);
anims.setYoyo(yoyo);
if (play)
{