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 sourceSprite_AnimationMV.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initMembers
method sourceSprite_AnimationMV.prototype.initMembers()
Initializes the members. (Same as the RPG Maker MZ method of this name.)
setupRate
method sourceSprite_AnimationMV.prototype.setupRate()
Setup rate. (Same as the RPG Maker MZ method of this name.)
setupDuration
method sourceSprite_AnimationMV.prototype.setupDuration()
Setup duration. (Same as the RPG Maker MZ method of this name.)
loadBitmaps
method sourceSprite_AnimationMV.prototype.loadBitmaps()
Loads the bitmaps. (Same as the RPG Maker MZ method of this name.)
createCellSprites
method sourceSprite_AnimationMV.prototype.createCellSprites()
Creates the cell sprites. (Same as the RPG Maker MZ method of this name.)
createScreenFlashSprite
method sourceSprite_AnimationMV.prototype.createScreenFlashSprite()
Creates the screen flash sprite. (Same as the RPG Maker MZ method of this name.)
Getting Information
currentFrameIndex
method sourceSprite_AnimationMV.prototype.currentFrameIndex()
The current frame index. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isPlaying
method sourceSprite_AnimationMV.prototype.isPlaying()
Whether it is playing. (Same as the RPG Maker MZ method of this name.)
isReady
method sourceSprite_AnimationMV.prototype.isReady()
Whether it is ready. (Same as the RPG Maker MZ method of this name.)
Actions
startFlash
method sourceSprite_AnimationMV.prototype.startFlash(color, duration)
Starts the flash. (Same as the RPG Maker MZ method of this name.)
startScreenFlash
method sourceSprite_AnimationMV.prototype.startScreenFlash(color, duration)
Starts the screen flash. (Same as the RPG Maker MZ method of this name.)
startHiding
method sourceSprite_AnimationMV.prototype.startHiding(duration)
Starts the hiding. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
processTimingData
method sourceSprite_AnimationMV.prototype.processTimingData(timing)
Handles the timing data. (Same as the RPG Maker MZ method of this name.)
onEnd
method sourceSprite_AnimationMV.prototype.onEnd()
Called when end happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceSprite_AnimationMV.prototype.update()
Update. (Same as the RPG Maker MZ method of this name.)
updateFlash
method sourceSprite_AnimationMV.prototype.updateFlash()
Updates the flash each frame. (Same as the RPG Maker MZ method of this name.)
updateScreenFlash
method sourceSprite_AnimationMV.prototype.updateScreenFlash()
Updates the screen flash each frame. (Same as the RPG Maker MZ method of this name.)
updateHiding
method sourceSprite_AnimationMV.prototype.updateHiding()
Updates the hiding each frame. (Same as the RPG Maker MZ method of this name.)
updateMain
method sourceSprite_AnimationMV.prototype.updateMain()
Updates the main each frame. (Same as the RPG Maker MZ method of this name.)
updatePosition
method sourceSprite_AnimationMV.prototype.updatePosition()
Updates the position each frame. (Same as the RPG Maker MZ method of this name.)
updateFrame
method sourceSprite_AnimationMV.prototype.updateFrame()
Updates the frame each frame. (Same as the RPG Maker MZ method of this name.)
updateAllCellSprites
method sourceSprite_AnimationMV.prototype.updateAllCellSprites(frame)
Updates the all cell sprites each frame. (Same as the RPG Maker MZ method of this name.)
updateCellSprite
method sourceSprite_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 sourceSprite_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 sourceSprite_AnimationMV.prototype.absoluteX()
Absolute x. (Same as the RPG Maker MZ method of this name.)
absoluteY
method sourceSprite_AnimationMV.prototype.absoluteY()
Absolute y. (Same as the RPG Maker MZ method of this name.)