Class in reactor_sprites.js

Sprite_AnimationMV

27 functions in 7 groups · hide internal

The main menu, drawn by Scenes and Windows.

Familiar territory. Sprite_AnimationMV 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 7

initialize() Sets up a new instance.
initMembers() Initializes the members.
setupRate() Setup rate.
setupDuration() Setup duration.
loadBitmaps() Loads the bitmaps.
createCellSprites() Creates the cell sprites.
createScreenFlashSprite() Creates the screen flash sprite.

Getting Information 1

currentFrameIndex() The current frame index.

Checks (True / False) 2

isPlaying() Whether it is playing.
isReady() Whether it is ready.

Actions 3

startFlash() Starts the flash.
startScreenFlash() Starts the screen flash.
startHiding() Starts the hiding.

Events, Commands & Input 2

processTimingData() Handles the timing data.
onEnd() Called when end happens.

Updating & Drawing 9

update() Update.
updateFlash() Updates the flash each frame.
updateScreenFlash() Updates the screen flash each frame.
updateHiding() Updates the hiding each frame.
updateMain() Updates the main each frame.
updatePosition() Updates the position each frame.
updateFrame() Updates the frame each frame.
updateAllCellSprites() Updates the all cell sprites each frame.
updateCellSprite() Updates the cell sprite each frame.

Other 3

_rrPrimeFirstFrame() Draw the first frame the moment the sprite enters the tree (sheets are already cached for anything that has p…
absoluteX() Absolute x.
absoluteY() Absolute y.

Setup & Creation

initialize

method source
Sprite_AnimationMV.prototype.initialize()

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

initMembers

method source
Sprite_AnimationMV.prototype.initMembers()

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

setupRate

method source
Sprite_AnimationMV.prototype.setupRate()

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

setupDuration

method source
Sprite_AnimationMV.prototype.setupDuration()

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

loadBitmaps

method source
Sprite_AnimationMV.prototype.loadBitmaps()

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

createCellSprites

method source
Sprite_AnimationMV.prototype.createCellSprites()

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

createScreenFlashSprite

method source
Sprite_AnimationMV.prototype.createScreenFlashSprite()

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

Getting Information

currentFrameIndex

method source
Sprite_AnimationMV.prototype.currentFrameIndex()

The current frame index. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isPlaying

method source
Sprite_AnimationMV.prototype.isPlaying()

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

isReady

method source
Sprite_AnimationMV.prototype.isReady()

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

Actions

startFlash

method source
Sprite_AnimationMV.prototype.startFlash(color, duration)

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

startScreenFlash

method source
Sprite_AnimationMV.prototype.startScreenFlash(color, duration)

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

startHiding

method source
Sprite_AnimationMV.prototype.startHiding(duration)

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

Events, Commands & Input

processTimingData

method source
Sprite_AnimationMV.prototype.processTimingData(timing)

Handles the timing data. (Same as the RPG Maker MZ method of this name.)

onEnd

method source
Sprite_AnimationMV.prototype.onEnd()

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

Updating & Drawing

update

method source
Sprite_AnimationMV.prototype.update()

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

updateFlash

method source
Sprite_AnimationMV.prototype.updateFlash()

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

updateScreenFlash

method source
Sprite_AnimationMV.prototype.updateScreenFlash()

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

updateHiding

method source
Sprite_AnimationMV.prototype.updateHiding()

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

updateMain

method source
Sprite_AnimationMV.prototype.updateMain()

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

updatePosition

method source
Sprite_AnimationMV.prototype.updatePosition()

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

updateFrame

method source
Sprite_AnimationMV.prototype.updateFrame()

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

updateAllCellSprites

method source
Sprite_AnimationMV.prototype.updateAllCellSprites(frame)

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

updateCellSprite

method source
Sprite_AnimationMV.prototype.updateCellSprite(sprite, cell)

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

Other

_rrPrimeFirstFrame

method internal source
Sprite_AnimationMV.prototype._rrPrimeFirstFrame()

Draw the first frame the moment the sprite enters the tree (sheets are already cached for anything that has played before), instead of leaving it invisible until its first update one tick later.

Details

Draw the first frame the moment the sprite enters the tree (sheets are already cached for anything that has played before), instead of leaving it invisible until its first update one tick later. Looping animations retriggered right at the end of the previous pass ("show, wait duration-1, repeat" flags) hand off without a blank tick. Visuals only: frame timings (SEs, flashes) still fire on the first real update.

absoluteX

method source
Sprite_AnimationMV.prototype.absoluteX()

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

absoluteY

method source
Sprite_AnimationMV.prototype.absoluteY()

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