Home

AnimatedImageSprite

Animated sprite sheet

Derived from: ImageSprite

Operations

AddClip

Adds a clip

method : public : AddClip(clip:Rect) ~ Nil
Parameters
NameTypeDescription
clipRectclip

GetClipCount

Get number of clips used in the sprite sheet

method : public : GetClipCount() ~ Int
Return
TypeDescription
Intnumber of clips

Render

Renders sprite

method : public : Render(x:Int, y:Int, index:Int) ~ Nil
Parameters
NameTypeDescription
xIntx-position
yInty-position
indexIntsprite image index

Renders sprite

method : public : Render(index:Int) ~ Nil
Parameters
NameTypeDescription
indexIntsprite image index