Familiar territory. Sprite_Battler 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 4
| initialize() | Sets up a new instance. |
| initMembers() | Initializes the members. |
| setupDamagePopup() | Setup damage popup. |
| createDamageSprite() | Creates the damage sprite. |
Checks (True / False) 2
| isEffecting() | Whether it is effecting. |
| isMoving() | Whether it is moving. |
Actions 5
| setBattler() | Sets the battler. |
| setHome() | Sets the home. |
| destroyDamageSprite() | Destroy damage sprite. |
| startMove() | Starts the move. |
| destroy() | Destroy. |
Events, Commands & Input 4
| onMoveEnd() | Called when move end happens. |
| onMouseEnter() | Called when mouse enter happens. |
| onPress() | Called when press happens. |
| onClick() | Called when click happens. |
Updating & Drawing 9
| update() | Update. |
| updateVisibility() | Updates the visibility each frame. |
| updateMain() | Updates the main each frame. |
| updateBitmap() | Updates the bitmap each frame. |
| updateFrame() | Updates the frame each frame. |
| updateMove() | Updates the move each frame. |
| updatePosition() | Updates the position each frame. |
| updateDamagePopup() | Updates the damage popup each frame. |
| updateSelectionEffect() | Updates the selection effect each frame. |
Other 6
| checkBattler() | Check battler. |
| mainSprite() | Main sprite. |
| damageOffsetX() | Damage offset x. |
| damageOffsetY() | Damage offset y. |
| inHomePosition() | In home position. |
| fieldPoint() | Field point. |
Setup & Creation
initialize
method sourceSprite_Battler.prototype.initialize(battler)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceSprite_Battler.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
setupDamagePopup
method sourceSprite_Battler.prototype.setupDamagePopup()
Setup damage popup. (Same as the RPG Maker MZ method of this name.)
createDamageSprite
method sourceSprite_Battler.prototype.createDamageSprite(result)
Creates the damage sprite. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isEffecting
method sourceSprite_Battler.prototype.isEffecting()
Whether it is effecting. (Same as the RPG Maker MZ method of this name.)
isMoving
method sourceSprite_Battler.prototype.isMoving()
Whether it is moving. (Same as the RPG Maker MZ method of this name.)
Actions
setBattler
method sourceSprite_Battler.prototype.setBattler(battler)
Sets the battler. (Same as the RPG Maker MZ method of this name.)
setHome
method sourceSprite_Battler.prototype.setHome(x, y)
Sets the home. (Same as the RPG Maker MZ method of this name.)
destroyDamageSprite
method sourceSprite_Battler.prototype.destroyDamageSprite(sprite)
Destroy damage sprite. (Same as the RPG Maker MZ method of this name.)
startMove
method sourceSprite_Battler.prototype.startMove(x, y, duration)
Starts the move. (Same as the RPG Maker MZ method of this name.)
destroy
method sourceSprite_Battler.prototype.destroy()
Destroy. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onMoveEnd
method sourceSprite_Battler.prototype.onMoveEnd()
Called when move end happens. (Same as the RPG Maker MZ method of this name.)
onMouseEnter
method sourceSprite_Battler.prototype.onMouseEnter()
Called when mouse enter happens. (Same as the RPG Maker MZ method of this name.)
onPress
method sourceSprite_Battler.prototype.onPress()
Called when press happens. (Same as the RPG Maker MZ method of this name.)
onClick
method sourceSprite_Battler.prototype.onClick()
Called when click happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_Battler.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateVisibility
method sourceSprite_Battler.prototype.updateVisibility()
Updates the visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateMain
method sourceSprite_Battler.prototype.updateMain()
Updates the main each frame. (Same as the RPG Maker MZ method of this name.)
updateBitmap
method sourceSprite_Battler.prototype.updateBitmap()
Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)
updateFrame
method sourceSprite_Battler.prototype.updateFrame()
Updates the frame each frame. (Same as the RPG Maker MZ method of this name.)
updateMove
method sourceSprite_Battler.prototype.updateMove()
Updates the move each frame. (Same as the RPG Maker MZ method of this name.)
updatePosition
method sourceSprite_Battler.prototype.updatePosition()
Updates the position each frame. (Same as the RPG Maker MZ method of this name.)
updateDamagePopup
method sourceSprite_Battler.prototype.updateDamagePopup()
Updates the damage popup each frame. (Same as the RPG Maker MZ method of this name.)
updateSelectionEffect
method sourceSprite_Battler.prototype.updateSelectionEffect()
Updates the selection effect each frame. (Same as the RPG Maker MZ method of this name.)
Other
checkBattler
method sourceSprite_Battler.prototype.checkBattler(battler)
Check battler. (Same as the RPG Maker MZ method of this name.)
mainSprite
method sourceSprite_Battler.prototype.mainSprite()
Main sprite. (Same as the RPG Maker MZ method of this name.)
damageOffsetX
method sourceSprite_Battler.prototype.damageOffsetX()
Damage offset x. (Same as the RPG Maker MZ method of this name.)
damageOffsetY
method sourceSprite_Battler.prototype.damageOffsetY()
Damage offset y. (Same as the RPG Maker MZ method of this name.)
inHomePosition
method sourceSprite_Battler.prototype.inHomePosition()
In home position. (Same as the RPG Maker MZ method of this name.)
fieldPoint
static sourceSprite_Battler.fieldPoint(x, y)
Field point. (Same as the RPG Maker MZ method of this name.)