Class: Sprite_Damage

Sprite_Damage()

new Sprite_Damage()

The sprite for displaying a popup damage.
Properties:
Name Type Description
_duration Number
_flashColor Array.<Number>
_flashDuration Number
_damageBitmap Bitmap

Extends

Methods

createChildSprite() → {Sprite}

Creates the child sprite of the damage sprite for displaying damage.
Returns:
Type
Sprite

createDigits(baseRow, value)

Parameters:
Name Type Description
baseRow Number
value Number

createMiss()

Creates the miss display of the damage sprite.

digitHeight() → {Number}

Returns the digit height of the sprite damage.
Returns:
Type
Number

digitWidth() → {Number}

Returns the digit width of the sprite damage.
Returns:
Type
Number

initialize()

isPlaying() → {Boolean}

Returns true if the damage sprite is playing.
Returns:
Type
Boolean

setup(target)

Parameters:
Name Type Description
target Game_Actor

setupCriticalEffect()

update()

updateChild(sprite)

Parameters:
Name Type Description
sprite Sprite

updateFlash()

Updates the flash of the damage sprite.

updateOpacity()

Updates the opacity of the damage sprite.