SpriteFactory.Sprite.SetAnimationSpeed
C#: void SetAnimationSpeed (string animationName, float speed)
JS: function SetAnimationSpeed (animationName : String, speed : float) : void
Description
Set the playback speed of an animation by name.
Speed is a multiplier. 0 = stopped, 1 = normal speed, +1 = fast speed. The final animation speed is also affected by Sprite.playbackSpeed.
C#: void SetAnimationSpeed (int animationIndex, float speed)
JS: function SetAnimationSpeed (animationIndex : int, speed : float) : void
Description
Set the playback speed of an animation by index.
Speed is a multiplier. 0 = stopped, 1 = normal speed, +1 = fast speed. The final animation speed is also affected by Sprite.playbackSpeed.
See Also
GetAnimationSpeed
playbackSpeed