Skip to content

care.anim.Animation:setSpeed

Method

Sets the default playback speed of the animation.

An individual instance (see care.anim.Instance) of the animation may optionally override this with its own playback speed.

Syntax

source:setSpeed(speed)

Arguments

Name Type Description
speed number Duration of each frame, in seconds.

Returns

Nothing.

Example

animation:setSpeed(0.05)