Class in reactor_sprites.js

Sprite_Character

44 functions in 5 groups · hide internal

The main menu, drawn by Scenes and Windows.

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 20

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.
_reactor3dDrawnByModel() Whether a 3D map is drawing this character as its own model (or it is a prop): its sprite is never shown.
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.
_reactor3dHides() Whether the 3D layer below hides this sprite (its world draws it, or it is a prop): asked by the base first.
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 source
Sprite_Character.prototype.initialize(character)

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

initMembers

method source
Sprite_Character.prototype.initMembers()

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

createHalfBodySprites

method source
Sprite_Character.prototype.createHalfBodySprites()

Creates the half body sprites. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isTile

method source
Sprite_Character.prototype.isTile()

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

isObjectCharacter

method source
Sprite_Character.prototype.isObjectCharacter()

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

isEmptyCharacter

method source
Sprite_Character.prototype.isEmptyCharacter()

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

isImageChanged

method source
Sprite_Character.prototype.isImageChanged()

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

isReactorLookBeat

method source
Sprite_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 source
Sprite_Character.prototype.setCharacter(character)

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

setTileBitmap

method source
Sprite_Character.prototype.setTileBitmap()

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

setCharacterBitmap

method source
Sprite_Character.prototype.setCharacterBitmap()

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

destroy

method source
Sprite_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 source
Sprite_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 source
Sprite_Character.prototype.update()

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

updateVisibility

method source
Sprite_Character.prototype.updateVisibility()

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

updateBitmap

method source
Sprite_Character.prototype.updateBitmap()

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

updateFrame

method source
Sprite_Character.prototype.updateFrame()

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

updateTileFrame

method source
Sprite_Character.prototype.updateTileFrame()

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

updateCharacterFrame

method source
Sprite_Character.prototype.updateCharacterFrame()

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

updateHalfBodySprites

method source
Sprite_Character.prototype.updateHalfBodySprites()

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

updatePosition

method source
Sprite_Character.prototype.updatePosition()

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

updateReactor3DPosition

method source
Sprite_Character.prototype.updateReactor3DPosition()

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

updateOther

method source
Sprite_Character.prototype.updateOther()

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

updateReactorLook

method source
Sprite_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 source
Sprite_Character.prototype.checkCharacter(character)

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

throttleModelSprites

static source
Sprite_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 source
Sprite_Character.prototype.catchUpSkips()

Catch up skips. (Same as the RPG Maker MZ method of this name.)

_reactor3dDrawnByModel

method internal source
Sprite_Character.prototype._reactor3dDrawnByModel()

Whether a 3D map is drawing this character as its own model (or it is a prop): its sprite is never shown.

tilesetBitmap

method source
Sprite_Character.prototype.tilesetBitmap(tileId)

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

characterBlockX

method source
Sprite_Character.prototype.characterBlockX()

Character block x. (Same as the RPG Maker MZ method of this name.)

characterBlockY

method source
Sprite_Character.prototype.characterBlockY()

Character block y. (Same as the RPG Maker MZ method of this name.)

characterPatternX

method source
Sprite_Character.prototype.characterPatternX()

Character pattern x. (Same as the RPG Maker MZ method of this name.)

characterPatternY

method source
Sprite_Character.prototype.characterPatternY()

Character pattern y. (Same as the RPG Maker MZ method of this name.)

patternWidth

method source
Sprite_Character.prototype.patternWidth()

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

patternHeight

method source
Sprite_Character.prototype.patternHeight()

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

reactorSortedZ

method source
Sprite_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 source
Sprite_Character.prototype.reactor3DScreenPoint(camera, out)

Where the character's feet are on the screen through camera, into out; null when nothing can be projected.

_reactor3dHides

method internal source
Sprite_Character.prototype._reactor3dHides()

Whether the 3D layer below hides this sprite (its world draws it, or it is a prop): asked by the base first.

reactor3DScale

method source
Sprite_Character.prototype.reactor3DScale()

Reactor3 d scale. (Same as the RPG Maker MZ method of this name.)

reactorApplyImage

method source
Sprite_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 source
Sprite_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 source
Sprite_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 source
Sprite_Character.rrRunning8(character)

Whether a character is dashing as it moves: the player, or a follower keeping up with a dashing player.

rrOneDir

method source
Sprite_Character.prototype.rrOneDir()

Whether a sprite shows a [1D] sheet (and no [8D] one).