Class in reactor_sprites.js

Sprite_Battler

30 functions in 6 groups · hide internal

The main menu, drawn by Scenes and Windows.

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 source
Sprite_Battler.prototype.initialize(battler)

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

initMembers

method source
Sprite_Battler.prototype.initMembers()

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

setupDamagePopup

method source
Sprite_Battler.prototype.setupDamagePopup()

Setup damage popup. (Same as the RPG Maker MZ method of this name.)

createDamageSprite

method source
Sprite_Battler.prototype.createDamageSprite(result)

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

Checks (True / False)

isEffecting

method source
Sprite_Battler.prototype.isEffecting()

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

isMoving

method source
Sprite_Battler.prototype.isMoving()

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

Actions

setBattler

method source
Sprite_Battler.prototype.setBattler(battler)

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

setHome

method source
Sprite_Battler.prototype.setHome(x, y)

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

destroyDamageSprite

method source
Sprite_Battler.prototype.destroyDamageSprite(sprite)

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

startMove

method source
Sprite_Battler.prototype.startMove(x, y, duration)

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

destroy

method source
Sprite_Battler.prototype.destroy()

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

Events, Commands & Input

onMoveEnd

method source
Sprite_Battler.prototype.onMoveEnd()

Called when move end happens. (Same as the RPG Maker MZ method of this name.)

onMouseEnter

method source
Sprite_Battler.prototype.onMouseEnter()

Called when mouse enter happens. (Same as the RPG Maker MZ method of this name.)

onPress

method source
Sprite_Battler.prototype.onPress()

Called when press happens. (Same as the RPG Maker MZ method of this name.)

onClick

method source
Sprite_Battler.prototype.onClick()

Called when click happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Sprite_Battler.prototype.update()

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

updateVisibility

method source
Sprite_Battler.prototype.updateVisibility()

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

updateMain

method source
Sprite_Battler.prototype.updateMain()

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

updateBitmap

method source
Sprite_Battler.prototype.updateBitmap()

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

updateFrame

method source
Sprite_Battler.prototype.updateFrame()

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

updateMove

method source
Sprite_Battler.prototype.updateMove()

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

updatePosition

method source
Sprite_Battler.prototype.updatePosition()

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

updateDamagePopup

method source
Sprite_Battler.prototype.updateDamagePopup()

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

updateSelectionEffect

method source
Sprite_Battler.prototype.updateSelectionEffect()

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

Other

checkBattler

method source
Sprite_Battler.prototype.checkBattler(battler)

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

mainSprite

method source
Sprite_Battler.prototype.mainSprite()

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

damageOffsetX

method source
Sprite_Battler.prototype.damageOffsetX()

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

damageOffsetY

method source
Sprite_Battler.prototype.damageOffsetY()

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

inHomePosition

method source
Sprite_Battler.prototype.inHomePosition()

In home position. (Same as the RPG Maker MZ method of this name.)

fieldPoint

static source
Sprite_Battler.fieldPoint(x, y)

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