Class in reactor_sprites.js
Sprite_Damage
18 public functions in 5 groups · show internal (_) functions
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 sourceSprite_Damage.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
setup
method sourceSprite_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 sourceSprite_Damage.prototype.setupCriticalEffect()
Setup critical effect. (Same as the RPG Maker MZ method of this name.)
createMiss
method sourceSprite_Damage.prototype.createMiss()
Creates the miss. (Same as the RPG Maker MZ method of this name.)
createDigits
method sourceSprite_Damage.prototype.createDigits(value)
Creates the digits. (Same as the RPG Maker MZ method of this name.)
createChildSprite
method sourceSprite_Damage.prototype.createChildSprite(width, height)
Creates the child sprite. (Same as the RPG Maker MZ method of this name.)
createBitmap
method sourceSprite_Damage.prototype.createBitmap(width, height)
Creates the bitmap. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isPlaying
method sourceSprite_Damage.prototype.isPlaying()
Whether it is playing. (Same as the RPG Maker MZ method of this name.)
Actions
destroy
method sourceSprite_Damage.prototype.destroy(options)
Destroy. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_Damage.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateChild
method sourceSprite_Damage.prototype.updateChild(sprite)
Updates the child each frame. (Same as the RPG Maker MZ method of this name.)
updateFlash
method sourceSprite_Damage.prototype.updateFlash()
Updates the flash each frame. (Same as the RPG Maker MZ method of this name.)
updateOpacity
method sourceSprite_Damage.prototype.updateOpacity()
Updates the opacity each frame. (Same as the RPG Maker MZ method of this name.)
Other
fontFace
method sourceSprite_Damage.prototype.fontFace()
Font face. (Same as the RPG Maker MZ method of this name.)
fontSize
method sourceSprite_Damage.prototype.fontSize()
Font size. (Same as the RPG Maker MZ method of this name.)
damageColor
method sourceSprite_Damage.prototype.damageColor()
Damage color. (Same as the RPG Maker MZ method of this name.)
outlineColor
method sourceSprite_Damage.prototype.outlineColor()
Outline color. (Same as the RPG Maker MZ method of this name.)
outlineWidth
method sourceSprite_Damage.prototype.outlineWidth()
Outline width. (Same as the RPG Maker MZ method of this name.)