Class in reactor_sprites.js
Sprite_Actor
32 public functions in 6 groups · show internal (_) functions
Familiar territory. Sprite_Actor 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 8
| initialize() | Sets up a new instance. |
| initMembers() | Initializes the members. |
| createMainSprite() | Creates the main sprite. |
| createShadowSprite() | Creates the shadow sprite. |
| createWeaponSprite() | Creates the weapon sprite. |
| createStateSprite() | Creates the state sprite. |
| setupMotion() | Setup motion. |
| setupWeaponAnimation() | Setup weapon animation. |
Checks (True / False) 1
| shouldStepForward() | Whether it should step forward. |
Actions 5
| setBattler() | Sets the battler. |
| moveToStartPosition() | Move to start position. |
| setActorHome() | Sets the actor home. |
| startMotion() | Starts the motion. |
| startEntryMotion() | Starts the entry motion. |
Events, Commands & Input 1
| onMoveEnd() | Called when move end happens. |
Updating & Drawing 12
| update() | Update. |
| updateShadow() | Updates the shadow each frame. |
| updateMain() | Updates the main each frame. |
| updateTargetPosition() | Updates the target position each frame. |
| updateBitmap() | Updates the bitmap each frame. |
| updateFrame() | Updates the frame each frame. |
| updateMove() | Updates the move each frame. |
| updateMotion() | Updates the motion each frame. |
| updateMotionCount() | Updates the motion count each frame. |
| refreshMotion() | Redraws the motion. |
| stepForward() | Step forward. |
| stepBack() | Step back. |
Other 5
| mainSprite() | Main sprite. |
| motionSpeed() | Motion speed. |
| retreat() | Retreat. |
| damageOffsetX() | Damage offset x. |
| damageOffsetY() | Damage offset y. |
Setup & Creation
initialize
method sourceSprite_Actor.prototype.initialize(battler)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceSprite_Actor.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
createMainSprite
method sourceSprite_Actor.prototype.createMainSprite()
Creates the main sprite. (Same as the RPG Maker MZ method of this name.)
createShadowSprite
method sourceSprite_Actor.prototype.createShadowSprite()
Creates the shadow sprite. (Same as the RPG Maker MZ method of this name.)
createWeaponSprite
method sourceSprite_Actor.prototype.createWeaponSprite()
Creates the weapon sprite. (Same as the RPG Maker MZ method of this name.)
createStateSprite
method sourceSprite_Actor.prototype.createStateSprite()
Creates the state sprite. (Same as the RPG Maker MZ method of this name.)
setupMotion
method sourceSprite_Actor.prototype.setupMotion()
Setup motion. (Same as the RPG Maker MZ method of this name.)
setupWeaponAnimation
method sourceSprite_Actor.prototype.setupWeaponAnimation()
Setup weapon animation. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
shouldStepForward
method sourceSprite_Actor.prototype.shouldStepForward()
Whether it should step forward. (Same as the RPG Maker MZ method of this name.)
Actions
setBattler
method sourceSprite_Actor.prototype.setBattler(battler)
Sets the battler. (Same as the RPG Maker MZ method of this name.)
moveToStartPosition
method sourceSprite_Actor.prototype.moveToStartPosition()
Move to start position. (Same as the RPG Maker MZ method of this name.)
setActorHome
method sourceSprite_Actor.prototype.setActorHome(index)
Sets the actor home. (Same as the RPG Maker MZ method of this name.)
startMotion
method sourceSprite_Actor.prototype.startMotion(motionType)
Starts the motion. (Same as the RPG Maker MZ method of this name.)
startEntryMotion
method sourceSprite_Actor.prototype.startEntryMotion()
Starts the entry motion. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onMoveEnd
method sourceSprite_Actor.prototype.onMoveEnd()
Called when move end happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_Actor.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateShadow
method sourceSprite_Actor.prototype.updateShadow()
Updates the shadow each frame. (Same as the RPG Maker MZ method of this name.)
updateMain
method sourceSprite_Actor.prototype.updateMain()
Updates the main each frame. (Same as the RPG Maker MZ method of this name.)
updateTargetPosition
method sourceSprite_Actor.prototype.updateTargetPosition()
Updates the target position each frame. (Same as the RPG Maker MZ method of this name.)
updateBitmap
method sourceSprite_Actor.prototype.updateBitmap()
Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)
updateFrame
method sourceSprite_Actor.prototype.updateFrame()
Updates the frame each frame. (Same as the RPG Maker MZ method of this name.)
updateMove
method sourceSprite_Actor.prototype.updateMove()
Updates the move each frame. (Same as the RPG Maker MZ method of this name.)
updateMotion
method sourceSprite_Actor.prototype.updateMotion()
Updates the motion each frame. (Same as the RPG Maker MZ method of this name.)
updateMotionCount
method sourceSprite_Actor.prototype.updateMotionCount()
Updates the motion count each frame. (Same as the RPG Maker MZ method of this name.)
refreshMotion
method sourceSprite_Actor.prototype.refreshMotion()
Redraws the motion. (Same as the RPG Maker MZ method of this name.)
stepForward
method sourceSprite_Actor.prototype.stepForward()
Step forward. (Same as the RPG Maker MZ method of this name.)
stepBack
method sourceSprite_Actor.prototype.stepBack()
Step back. (Same as the RPG Maker MZ method of this name.)
Other
mainSprite
method sourceSprite_Actor.prototype.mainSprite()
Main sprite. (Same as the RPG Maker MZ method of this name.)
motionSpeed
method sourceSprite_Actor.prototype.motionSpeed()
Motion speed. (Same as the RPG Maker MZ method of this name.)
retreat
method sourceSprite_Actor.prototype.retreat()
Retreat. (Same as the RPG Maker MZ method of this name.)
damageOffsetX
method sourceSprite_Actor.prototype.damageOffsetX()
Damage offset x. (Same as the RPG Maker MZ method of this name.)
damageOffsetY
method sourceSprite_Actor.prototype.damageOffsetY()
Damage offset y. (Same as the RPG Maker MZ method of this name.)