Class in reactor_sprites.js

Sprite_Damage

18 public functions in 5 groups · show internal (_) functions

The main menu, drawn by Scenes and Windows.

Familiar territory. Sprite_Damage keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 7

initialize() Sets up a new instance.
setup() result defaults to the target's own; setupDamagePopup passes an MP-only copy when one hit moved both HP and M…
setupCriticalEffect() Setup critical effect.
createMiss() Creates the miss.
createDigits() Creates the digits.
createChildSprite() Creates the child sprite.
createBitmap() Creates the bitmap.

Checks (True / False) 1

isPlaying() Whether it is playing.

Actions 1

destroy() Destroy.

Updating & Drawing 4

update() Update.
updateChild() Updates the child each frame.
updateFlash() Updates the flash each frame.
updateOpacity() Updates the opacity each frame.

Other 5

fontFace() Font face.
fontSize() Font size.
damageColor() Damage color.
outlineColor() Outline color.
outlineWidth() Outline width.

Setup & Creation

initialize

method source
Sprite_Damage.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

setup

method source
Sprite_Damage.prototype.setup(target, result = target.result()

result defaults to the target's own; setupDamagePopup passes an MP-only copy when one hit moved both HP and MP.

setupCriticalEffect

method source
Sprite_Damage.prototype.setupCriticalEffect()

Setup critical effect. (Same as the RPG Maker MZ method of this name.)

createMiss

method source
Sprite_Damage.prototype.createMiss()

Creates the miss. (Same as the RPG Maker MZ method of this name.)

createDigits

method source
Sprite_Damage.prototype.createDigits(value)

Creates the digits. (Same as the RPG Maker MZ method of this name.)

createChildSprite

method source
Sprite_Damage.prototype.createChildSprite(width, height)

Creates the child sprite. (Same as the RPG Maker MZ method of this name.)

createBitmap

method source
Sprite_Damage.prototype.createBitmap(width, height)

Creates the bitmap. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isPlaying

method source
Sprite_Damage.prototype.isPlaying()

Whether it is playing. (Same as the RPG Maker MZ method of this name.)

Actions

destroy

method source
Sprite_Damage.prototype.destroy(options)

Destroy. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Sprite_Damage.prototype.update()

Update. (Same as the RPG Maker MZ method of this name.)

updateChild

method source
Sprite_Damage.prototype.updateChild(sprite)

Updates the child each frame. (Same as the RPG Maker MZ method of this name.)

updateFlash

method source
Sprite_Damage.prototype.updateFlash()

Updates the flash each frame. (Same as the RPG Maker MZ method of this name.)

updateOpacity

method source
Sprite_Damage.prototype.updateOpacity()

Updates the opacity each frame. (Same as the RPG Maker MZ method of this name.)

Other

fontFace

method source
Sprite_Damage.prototype.fontFace()

Font face. (Same as the RPG Maker MZ method of this name.)

fontSize

method source
Sprite_Damage.prototype.fontSize()

Font size. (Same as the RPG Maker MZ method of this name.)

damageColor

method source
Sprite_Damage.prototype.damageColor()

Damage color. (Same as the RPG Maker MZ method of this name.)

outlineColor

method source
Sprite_Damage.prototype.outlineColor()

Outline color. (Same as the RPG Maker MZ method of this name.)

outlineWidth

method source
Sprite_Damage.prototype.outlineWidth()

Outline width. (Same as the RPG Maker MZ method of this name.)