v2025.7.0
All Bundles

AnimatedImageSprite

Animated sprite sheet

Operations

AddClip

Adds a clip

method : public : AddClip(clip:Rect) ~ Nil

Parameters

NameTypeDescription
clipRectclip

AddClips

Adds clips

method : public : AddClips(num_x_clips:Int, x_clip_size:Int, num_y_clips:Int, y_clip_size:Int) ~ Nil

Parameters

NameTypeDescription
num_x_clipsIntnumber of x-clips
x_clip_sizeIntx size of clips
num_y_clipsIntnumber of y-clips
y_clip_sizeInty size of clips

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

Render

Renders sprite

method : public : Render(index:Int) ~ Nil

Parameters

NameTypeDescription
indexIntsprite image index