SpriteFactory.Sprite.Play
C#: void Play ()
JS: function Play () : void
Description
Play the current animation or the the default animation if no current animation.
C#: void Play (bool replayFromStart)
JS: function Play (replayFromStart : boolean) : void
Description
Play the current animation or the the default animation if no current animation.
If replayFromStart = true, the current animation will restart from the beginning.
C#: void Play (string animationName, [bool replayFromStart = false])
JS: function Play (string animationName, [replayFromStart : boolean = false]) : void
Description
Play animation by name.
If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
C#: void Play (string animationName, bool replayFromStart, bool playBackwards)
JS: function Play (string animationName, replayFromStart : boolean, playBackwards : boolean) : void
Description
Play animation by name.
If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
If playBackwards = true, animation frames will be played in reverse order.
C#: void Play (int animationIndex, [bool replayFromStart = false])
JS: function Play (animationIndex : int, [replayFromStart : boolean = false]) : void
Description
Play animation by index.
If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
C#: void Play (int animationIndex, bool replayFromStart, bool playBackwards)
JS: function Play (animationIndex : int, replayFromStart : boolean, playBackwards : boolean) : void
Description
Play animation by index.
If replayFromStart = true and the incoming animation is already playing, the animation will restart from the beginning.
If playBackwards = true, animation frames will be played in reverse order.