care.anim.Animation
Class
A frame-based sprite animation.
Represents an animation defined as a sequence of frames drawn from a texture atlas. The animation may then be drawn in individual instances, with their own independently controlled playback states and settings, via care.anim.Instance.
Animation objects are created using care.anim.Animation.new.
Not to be confused with its parent module, care.anim.
Functions
| Function | Description |
|---|---|
Animation.new |
Creates a new animation object. |
Methods
| Method | Description |
|---|---|
Animation:getSpeed |
Returns the default playback speed of the animation. |
Animation:setSpeed |
Sets the default playback speed of the animation. |