AnimatedSprite

Constructors

this
this(SpriteSheet sheet)

Members

Functions

draw
void draw(RenderTarget renderTarget, Matrix transform)
Undocumented in source. Be warned that the author may not have intended to support it.
getCurrentAnimation
string getCurrentAnimation()

Returns the name of the current animation

getCurrentFrame
int getCurrentFrame()

Returns the index of the current frame within the current animation

getCurrentTime
float getCurrentTime()
isAnimationFinished
bool isAnimationFinished()
isLooping
bool isLooping()
playAnimation
void playAnimation(string name, bool loop)
update
void update()

Usually unnecessary to call directly

Meta