Animated sprite sheet
Derived from: ImageSprite
OperationsAdds a clip
method : public : AddClip(clip:Rect) ~ Nil
Name | Type | Description |
---|---|---|
clip | Rect | clip |
Adds clips
method : public : AddClips(num_x_clips:Int, x_clip_size:Int, num_y_clips:Int, y_clip_size:Int) ~ Nil
Name | Type | Description |
---|---|---|
num_x_clips | Int | number of x-clips |
x_clip_size | Int | x size of clips |
num_y_clips | Int | number of y-clips |
y_clip_size | Int | y size of clips |
Get number of clips used in the sprite sheet
method : public : GetClipCount() ~ Int
Type | Description |
---|---|
Int | number of clips |
Renders sprite
method : public : Render(x:Int, y:Int, index:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | x-position |
y | Int | y-position |
index | Int | sprite image index |
Renders sprite
method : public : Render(index:Int) ~ Nil
Name | Type | Description |
---|---|---|
index | Int | sprite image index |