Creates a bitmap for the sprite
Destroys the sprite
Gets the blend color for the sprite
Returns:
| Type | Description |
|---|
| array | The blend color [r, g, b, a] |
Gets the color tone for the sprite
Returns:
| Type | Description |
|---|
| array | The color tone [r, g, b, gray] |
Makes the sprite "hidden" (not visible)
Initializes the sprite
| Name | Type | Description |
|---|
bitmap | Bitmap | The bitmap of the sprite |
Sets the x and y coordiantes of the sprite
| Name | Type | Description |
|---|
x | number | The x coordinate of the sprite |
y | number | The y coordinate of the sprite |
Sets the blend color for the sprite
| Name | Type | Description |
|---|
color | array | The blend color [r, g, b, a] |
Sets the color tone for the sprite
| Name | Type | Description |
|---|
tone | array | The color tone [r, g, b, gray] |
Sets the rectagle of the bitmap that the sprite displays
| Name | Type | Description |
|---|
x | number | The x coordinate of the frame |
y | number | The y coordinate of the frame |
width | number | The width of the frame |
height | number | The height of the frame |
Sets the hue rotation value
| Name | Type | Description |
|---|
hue | number | The hue value (-360, 360) |
Removes the "hidden" state of the sprite, making it visible
Updates the sprite for each frame
Updates the sprite's animation
Updates the position of the sprite
Updates the visibility status of the sprite