ImageSprite
Sprite image
Operations
GetAngle
Gets the image angle
method : public : GetAngle() ~ FloatReturn
| Type | Description |
|---|---|
| Float | image angle |
GetFlip
Gets image flip
method : public : GetFlip() ~ RendererFlipReturn
| Type | Description |
|---|---|
| RendererFlip | direction to flip |
IsOk
Initialization status flag
method : public : IsOk() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true if initialized, false otherwise |
LoadImage
Loads an image
method : private : LoadImage(file:String, colorkey:Color) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| file | String | image to load |
| colorkey | Color | key color |
Return
| Type | Description |
|---|---|
| Bool | true if success, false otherwise |
Render
Renders an image
method : public : Render(x:Int, y:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| x | Int | x-position |
| y | Int | y-position |
SetAngle
Sets the image angle
method : public : SetAngle(angle:Float) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| angle | Float | image angle |
SetFlip
Sets flip of image
method : public : SetFlip(flip:RendererFlip) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| flip | RendererFlip | direction to flip |