Class in reactor_sprites.js
Sprite_Timer
11 public functions in 4 groups · show internal (_) functions
Familiar territory. Sprite_Timer 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 2
| initialize() | Sets up a new instance. |
| createBitmap() | Creates the bitmap. |
Actions 1
| destroy() | Destroy. |
Updating & Drawing 5
| update() | Update. |
| updateBitmap() | Updates the bitmap each frame. |
| redraw() | Redraw. |
| updatePosition() | Updates the position each frame. |
| updateVisibility() | Updates the visibility each frame. |
Other 3
| fontFace() | Font face. |
| fontSize() | Font size. |
| timerText() | Timer text. |
Setup & Creation
initialize
method sourceSprite_Timer.prototype.initialize(timerId = 0)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
createBitmap
method sourceSprite_Timer.prototype.createBitmap()
Creates the bitmap. (Same as the RPG Maker MZ method of this name.)
Actions
destroy
method sourceSprite_Timer.prototype.destroy(options)
Destroy. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_Timer.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateBitmap
method sourceSprite_Timer.prototype.updateBitmap()
Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)
redraw
method sourceSprite_Timer.prototype.redraw()
Redraw. (Same as the RPG Maker MZ method of this name.)
updatePosition
method sourceSprite_Timer.prototype.updatePosition()
Updates the position each frame. (Same as the RPG Maker MZ method of this name.)
updateVisibility
method sourceSprite_Timer.prototype.updateVisibility()
Updates the visibility each frame. (Same as the RPG Maker MZ method of this name.)
Other
fontFace
method sourceSprite_Timer.prototype.fontFace()
Font face. (Same as the RPG Maker MZ method of this name.)
fontSize
method sourceSprite_Timer.prototype.fontSize()
Font size. (Same as the RPG Maker MZ method of this name.)
timerText
method sourceSprite_Timer.prototype.timerText()
Timer text. (Same as the RPG Maker MZ method of this name.)