createBitmap(width, height)Bitmap
Creates a bitmap with font, text color, and outline settings
Name | Type | Description |
---|
width | number | The width of the bitmap |
height | number | The height of the bitmap |
Returns:
Type | Description |
---|
Bitmap | The bitmap that was created |
createChildSprite(width, height)Sprite
Creates a child sprite of a given width and height
Name | Type | Description |
---|
width | number | The width of the child sprite |
height | number | The height of the child sprite |
Returns:
Type | Description |
---|
Sprite | The child sprite that was created |
Creates the numbers that are part of the damage popup
Name | Type | Description |
---|
value | number | The number to turn into damage popup digits |
Creates the miss damage popup text
Gets the color to use for the damage color
Returns:
Type | Description |
---|
string | The color string in hex format |
Destroys the sprite
Gets the font face to use
Returns:
Type | Description |
---|
string | The font face to use |
Gets the font size to use
Returns:
Type | Description |
---|
number | The font size to use |
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 |
Check if the damage popup is currently playing
Returns:
Type | Description |
---|
boolean | True if currently playing |
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 |
Gets the color to use for the outline
Returns:
Type | Description |
---|
string | The color string, by default rgba format |
Gets the outline width
Returns:
Type | Description |
---|
number | The width of the outline |
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) |
Sets the sprite up
Name | Type | Description |
---|
target | Game_Battler | The target to show the damage sprite for |
Sets the sprite's critical effect variables
Removes the "hidden" state of the sprite, making it visible
Updates the sprite for each frame
Updates a child sprite
Name | Type | Description |
---|
sprite | Sprite | The child sprite to update |
Updates the flash effect
Updates the opacity
Updates the visibility status of the sprite