Class in reactor_sprites.js

Sprite_Actor

32 functions in 6 groups · hide internal

The main menu, drawn by Scenes and Windows.

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

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

initMembers

method source
Sprite_Actor.prototype.initMembers()

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

createMainSprite

method source
Sprite_Actor.prototype.createMainSprite()

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

createShadowSprite

method source
Sprite_Actor.prototype.createShadowSprite()

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

createWeaponSprite

method source
Sprite_Actor.prototype.createWeaponSprite()

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

createStateSprite

method source
Sprite_Actor.prototype.createStateSprite()

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

setupMotion

method source
Sprite_Actor.prototype.setupMotion()

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

setupWeaponAnimation

method source
Sprite_Actor.prototype.setupWeaponAnimation()

Setup weapon animation. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

shouldStepForward

method source
Sprite_Actor.prototype.shouldStepForward()

Whether it should step forward. (Same as the RPG Maker MZ method of this name.)

Actions

setBattler

method source
Sprite_Actor.prototype.setBattler(battler)

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

moveToStartPosition

method source
Sprite_Actor.prototype.moveToStartPosition()

Move to start position. (Same as the RPG Maker MZ method of this name.)

setActorHome

method source
Sprite_Actor.prototype.setActorHome(index)

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

startMotion

method source
Sprite_Actor.prototype.startMotion(motionType)

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

startEntryMotion

method source
Sprite_Actor.prototype.startEntryMotion()

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

Events, Commands & Input

onMoveEnd

method source
Sprite_Actor.prototype.onMoveEnd()

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

Updating & Drawing

update

method source
Sprite_Actor.prototype.update()

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

updateShadow

method source
Sprite_Actor.prototype.updateShadow()

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

updateMain

method source
Sprite_Actor.prototype.updateMain()

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

updateTargetPosition

method source
Sprite_Actor.prototype.updateTargetPosition()

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

updateBitmap

method source
Sprite_Actor.prototype.updateBitmap()

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

updateFrame

method source
Sprite_Actor.prototype.updateFrame()

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

updateMove

method source
Sprite_Actor.prototype.updateMove()

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

updateMotion

method source
Sprite_Actor.prototype.updateMotion()

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

updateMotionCount

method source
Sprite_Actor.prototype.updateMotionCount()

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

refreshMotion

method source
Sprite_Actor.prototype.refreshMotion()

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

stepForward

method source
Sprite_Actor.prototype.stepForward()

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

stepBack

method source
Sprite_Actor.prototype.stepBack()

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

Other

mainSprite

method source
Sprite_Actor.prototype.mainSprite()

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

motionSpeed

method source
Sprite_Actor.prototype.motionSpeed()

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

retreat

method source
Sprite_Actor.prototype.retreat()

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

damageOffsetX

method source
Sprite_Actor.prototype.damageOffsetX()

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

damageOffsetY

method source
Sprite_Actor.prototype.damageOffsetY()

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