AnimatedImageSprite
Animated sprite sheet
Operations
AddClip
Adds a clip
method : public : AddClip(clip:Rect) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| clip | Rect | clip |
AddClips
Adds clips
method : public : AddClips(num_x_clips:Int, x_clip_size:Int, num_y_clips:Int, y_clip_size:Int) ~ NilParameters
| 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 |
GetClipCount
Get number of clips used in the sprite sheet
method : public : GetClipCount() ~ IntReturn
| Type | Description |
|---|---|
| Int | number of clips |
Render
Renders sprite
method : public : Render(x:Int, y:Int, index:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| x | Int | x-position |
| y | Int | y-position |
| index | Int | sprite image index |
Render
Renders sprite
method : public : Render(index:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| index | Int | sprite image index |