Class in reactor_sprites.js
Sprite_Character
42 public functions in 5 groups · show internal (_) functions
Familiar territory. Sprite_Character 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 3
| initialize() | Sets up a new instance. |
| initMembers() | Initializes the members. |
| createHalfBodySprites() | Creates the half body sprites. |
Checks (True / False) 5
| isTile() | Whether it is tile. |
| isObjectCharacter() | Whether it is object character. |
| isEmptyCharacter() | Whether it is empty character. |
| isImageChanged() | Whether it is image changed. |
| isReactorLookBeat() | Whether this is the frame of the look's beat on which this sprite's event is asked what it stands as. |
Actions 5
| setCharacter() | Sets the character. |
| setTileBitmap() | Sets the tile bitmap. |
| setCharacterBitmap() | Sets the character bitmap. |
| destroy() | The wrapped method is held in a closure, not looked up on this: MV plugins subclass these sprites or borrow t… |
| clearReactorLook() | The event shows its own picture again (it changed page, was given a picture, or is no unit any more). |
Updating & Drawing 11
| update() | Update. |
| updateVisibility() | Updates the visibility each frame. |
| updateBitmap() | Updates the bitmap each frame. |
| updateFrame() | Updates the frame each frame. |
| updateTileFrame() | Updates the tile frame each frame. |
| updateCharacterFrame() | Updates the character frame each frame. |
| updateHalfBodySprites() | Updates the half body sprites each frame. |
| updatePosition() | Updates the position each frame. |
| updateReactor3DPosition() | Updates the reactor3 d position each frame. |
| updateOther() | Updates the other each frame. |
| updateReactorLook() | Shows a battle unit that has no picture of its own as its record's look. |
Other 18
| checkCharacter() | Check character. |
| throttleModelSprites() | At a Quality level that asks it (Reactor3D.Quality.spriteEvery), a sprite its model draws is updated every fe… |
| catchUpSkips() | Catch up skips. |
| tilesetBitmap() | Tileset bitmap. |
| characterBlockX() | Character block x. |
| characterBlockY() | Character block y. |
| characterPatternX() | Character pattern x. |
| characterPatternY() | Character pattern y. |
| patternWidth() | Pattern width. |
| patternHeight() | Pattern height. |
| reactorSortedZ() | A character in front of an "Above Characters (Sorted by Y)" event, and overlapping it, draws on that event's… |
| reactor3DScreenPoint() | Where the character's feet are on the screen through camera, into out; null when nothing can be projected. |
| reactor3DScale() | Reactor3 d scale. |
| reactorApplyImage() | The character's image turn (Mirror, Flip, Rotate about its middle; see Game_CharacterBase.reactorMirror): app… |
| reactorAnimationMiddle() | Where an animation on this character is centered, when its picture is a model on a 3D map (the sprite stands… |
| rrFacing8() | The way a character faces among eight: the step it is taking, else the diagonal it last took, else its direct… |
| rrRunning8() | Whether a character is dashing as it moves: the player, or a follower keeping up with a dashing player. |
| rrOneDir() | Whether a sprite shows a [1D] sheet (and no [8D] one). |
Setup & Creation
initialize
method sourceSprite_Character.prototype.initialize(character)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceSprite_Character.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
createHalfBodySprites
method sourceSprite_Character.prototype.createHalfBodySprites()
Creates the half body sprites. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isTile
method sourceSprite_Character.prototype.isTile()
Whether it is tile. (Same as the RPG Maker MZ method of this name.)
isObjectCharacter
method sourceSprite_Character.prototype.isObjectCharacter()
Whether it is object character. (Same as the RPG Maker MZ method of this name.)
isEmptyCharacter
method sourceSprite_Character.prototype.isEmptyCharacter()
Whether it is empty character. (Same as the RPG Maker MZ method of this name.)
isImageChanged
method sourceSprite_Character.prototype.isImageChanged()
Whether it is image changed. (Same as the RPG Maker MZ method of this name.)
isReactorLookBeat
method sourceSprite_Character.prototype.isReactorLookBeat()
Whether this is the frame of the look's beat on which this sprite's event is asked what it stands as.
Actions
setCharacter
method sourceSprite_Character.prototype.setCharacter(character)
Sets the character. (Same as the RPG Maker MZ method of this name.)
setTileBitmap
method sourceSprite_Character.prototype.setTileBitmap()
Sets the tile bitmap. (Same as the RPG Maker MZ method of this name.)
setCharacterBitmap
method sourceSprite_Character.prototype.setCharacterBitmap()
Sets the character bitmap. (Same as the RPG Maker MZ method of this name.)
destroy
method sourceSprite_Character.prototype.destroy(options)
The wrapped method is held in a closure, not looked up on this: MV plugins subclass these sprites or borrow their methods onto other prototypes (LeTBS runs Sprite_AnimationMV.update on a Sprite_Animation), and there this has no such property.
clearReactorLook
method sourceSprite_Character.prototype.clearReactorLook()
The event shows its own picture again (it changed page, was given a picture, or is no unit any more).
Updating & Drawing
update
method sourceSprite_Character.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateVisibility
method sourceSprite_Character.prototype.updateVisibility()
Updates the visibility each frame. (Same as the RPG Maker MZ method of this name.)
updateBitmap
method sourceSprite_Character.prototype.updateBitmap()
Updates the bitmap each frame. (Same as the RPG Maker MZ method of this name.)
updateFrame
method sourceSprite_Character.prototype.updateFrame()
Updates the frame each frame. (Same as the RPG Maker MZ method of this name.)
updateTileFrame
method sourceSprite_Character.prototype.updateTileFrame()
Updates the tile frame each frame. (Same as the RPG Maker MZ method of this name.)
updateCharacterFrame
method sourceSprite_Character.prototype.updateCharacterFrame()
Updates the character frame each frame. (Same as the RPG Maker MZ method of this name.)
updateHalfBodySprites
method sourceSprite_Character.prototype.updateHalfBodySprites()
Updates the half body sprites each frame. (Same as the RPG Maker MZ method of this name.)
updatePosition
method sourceSprite_Character.prototype.updatePosition()
Updates the position each frame. (Same as the RPG Maker MZ method of this name.)
updateReactor3DPosition
method sourceSprite_Character.prototype.updateReactor3DPosition()
Updates the reactor3 d position each frame. (Same as the RPG Maker MZ method of this name.)
updateOther
method sourceSprite_Character.prototype.updateOther()
Updates the other each frame. (Same as the RPG Maker MZ method of this name.)
updateReactorLook
method sourceSprite_Character.prototype.updateReactorLook()
Shows a battle unit that has no picture of its own as its record's look.
Details
Shows a battle unit that has no picture of its own as its record's look. True when the look is this sprite's picture: the event's own (empty) sheet is then not asked for.
Other
checkCharacter
method sourceSprite_Character.prototype.checkCharacter(character)
Check character. (Same as the RPG Maker MZ method of this name.)
throttleModelSprites
static sourceSprite_Character.throttleModelSprites()
At a Quality level that asks it (Reactor3D.Quality.spriteEvery), a sprite its model draws is updated every few updates instead of every one, through every plugin's wrapper: it is never shown, and what plugins read off it (its place, its picture) is that much older.
Details
At a Quality level that asks it (Reactor3D.Quality.spriteEvery), a sprite its model draws is updated every few updates instead of every one, through every plugin's wrapper: it is never shown, and what plugins read off it (its place, its picture) is that much older. Installed outermost once the plugins have wrapped the method (the map's first 3D update), and again if one wraps it later. The Reactor Room's 30 such sprites were 2.5 ms of the laptop's frame while walking (i5-1145G7, 2026-11-08).
catchUpSkips
method sourceSprite_Character.prototype.catchUpSkips()
Catch up skips. (Same as the RPG Maker MZ method of this name.)
tilesetBitmap
method sourceSprite_Character.prototype.tilesetBitmap(tileId)
Tileset bitmap. (Same as the RPG Maker MZ method of this name.)
characterBlockX
method sourceSprite_Character.prototype.characterBlockX()
Character block x. (Same as the RPG Maker MZ method of this name.)
characterBlockY
method sourceSprite_Character.prototype.characterBlockY()
Character block y. (Same as the RPG Maker MZ method of this name.)
characterPatternX
method sourceSprite_Character.prototype.characterPatternX()
Character pattern x. (Same as the RPG Maker MZ method of this name.)
characterPatternY
method sourceSprite_Character.prototype.characterPatternY()
Character pattern y. (Same as the RPG Maker MZ method of this name.)
patternWidth
method sourceSprite_Character.prototype.patternWidth()
Pattern width. (Same as the RPG Maker MZ method of this name.)
patternHeight
method sourceSprite_Character.prototype.patternHeight()
Pattern height. (Same as the RPG Maker MZ method of this name.)
reactorSortedZ
method sourceSprite_Character.prototype.reactorSortedZ()
A character in front of an "Above Characters (Sorted by Y)" event, and overlapping it, draws on that event's layer for the frame; the tilemap then orders the two by their feet.
Details
A character in front of an "Above Characters (Sorted by Y)" event, and overlapping it, draws on that event's layer for the frame; the tilemap then orders the two by their feet. Everything else keeps its own z.
reactor3DScreenPoint
method sourceSprite_Character.prototype.reactor3DScreenPoint(camera, out)
Where the character's feet are on the screen through camera, into out; null when nothing can be projected.
reactor3DScale
method sourceSprite_Character.prototype.reactor3DScale()
Reactor3 d scale. (Same as the RPG Maker MZ method of this name.)
reactorApplyImage
method sourceSprite_Character.prototype.reactorApplyImage()
The character's image turn (Mirror, Flip, Rotate about its middle; see Game_CharacterBase.reactorMirror): applied last, around everything above, so a 3D map's stand scale and lean are in the numbers.
Details
The character's image turn (Mirror, Flip, Rotate about its middle; see Game_CharacterBase.reactorMirror): applied last, around everything above, so a 3D map's stand scale and lean are in the numbers. Mirror and flip are the scale's signs, kept whatever a plugin assigned; a sign this set is put back once the turn is gone, and a sprite never turned is left alone (a plugin's own negative zoom stays its own). The sprite stays on its tile: a flip turns over about the frame's middle, not its feet, and the move that takes is added to the position updatePosition gives every frame.
reactorAnimationMiddle
method sourceSprite_Character.prototype.reactorAnimationMiddle()
Where an animation on this character is centered, when its picture is a model on a 3D map (the sprite stands in unseen): the middle of the model's height, on the screen.
Details
Where an animation on this character is centered, when its picture is a model on a 3D map (the sprite stands in unseen): the middle of the model's height, on the screen. Null where the sprite itself is the picture.
rrFacing8
static sourceSprite_Character.rrFacing8(character)
The way a character faces among eight: the step it is taking, else the diagonal it last took, else its direction.
rrRunning8
static sourceSprite_Character.rrRunning8(character)
Whether a character is dashing as it moves: the player, or a follower keeping up with a dashing player.
rrOneDir
method sourceSprite_Character.prototype.rrOneDir()
Whether a sprite shows a [1D] sheet (and no [8D] one).