- _getAnimations
Array _getAnimations()
- _getFrames
Array _getFrames()
- _setAnimations
void _setAnimations(Array arg0)
- _setFrames
void _setFrames(Array arg0)
- addAnimation
void addAnimation(StringArg0 anim)
Adds a new animation to the library.
- addFrame
void addFrame(StringArg0 anim, Texture frame, long at_position)
Adds a frame to the given animation.
- clear
void clear(StringArg0 anim)
Removes all frames from the given animation.
- clearAll
void clearAll()
Removes all animations. A "default" animation will be created.
- getAnimationLoop
bool getAnimationLoop(StringArg0 anim)
If true the given animation will loop.
- getAnimationNames
PoolStringArray getAnimationNames()
Returns an array containing the names associated to each animation. Values are placed in alphabetical order.
- getAnimationSpeed
double getAnimationSpeed(StringArg0 anim)
The animation's speed in frames per second.
- getFrame
Ref!Texture getFrame(StringArg0 anim, long idx)
Returns the animation's selected frame.
- getFrameCount
long getFrameCount(StringArg0 anim)
Returns the number of frames in the animation.
- hasAnimation
bool hasAnimation(StringArg0 anim)
If true the named animation exists.
- opAssign
SpriteFrames opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(SpriteFrames other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeAnimation
void removeAnimation(StringArg0 anim)
Removes the given animation.
- removeFrame
void removeFrame(StringArg0 anim, long idx)
Removes the animation's selected frame.
- renameAnimation
void renameAnimation(StringArg0 anim, StringArg1 newname)
Changes the animation's name to newname.
- setAnimationLoop
void setAnimationLoop(StringArg0 anim, bool loop)
If true the animation will loop.
- setAnimationSpeed
void setAnimationSpeed(StringArg0 anim, double speed)
The animation's speed in frames per second.
- setFrame
void setFrame(StringArg0 anim, long idx, Texture txt)
Sets the texture of the given frame.
Sprite frame library for AnimatedSprite.
Sprite frame library for AnimatedSprite. Contains frames and animation data for playback.