Class in reactor_managers.js
SceneManager
49 public functions in 6 groups · show internal (_) functions
Familiar territory. SceneManager 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. |
| initGraphics() | Initializes the graphics. |
| initAudio() | Initializes the audio. |
| initVideo() | Initializes the video. |
| initInput() | Initializes the input. |
| setupEventHandlers() | Setup event handlers. |
| prepareNextScene() | Prepare next scene. |
Checks (True / False) 6
| isFinalUpdateOfFrame() | Whether this update is the one whose results will actually be displayed. |
| isGameActive() | Whether it is game active. |
| isSceneChanging() | Whether it is scene changing. |
| isCurrentSceneBusy() | Whether it is current scene busy. |
| isNextScene() | Whether it is next scene. |
| isPreviousScene() | Whether it is previous scene. |
Actions 9
| run() | Run. |
| showDevTools() | Shows the dev tools. |
| changeScene() | Changes the scene. |
| push() | Push. |
| pop() | Pop. |
| exit() | Exit. |
| clearStack() | Clears the stack. |
| stop() | Stop. |
| resume() | Resume. |
Events, Commands & Input 8
| onError() | Called when error happens. |
| onReject() | Called when reject happens. |
| onUnload() | Called when unload happens. |
| onKeyDown() | Called when key down happens. |
| onSceneTerminate() | Called when scene terminate happens. |
| onSceneCreate() | Called when scene create happens. |
| onBeforeSceneStart() | Called when before scene start happens. |
| onSceneStart() | Called when scene start happens. |
Updating & Drawing 6
| update() | One refresh: the updates it owes. |
| updateMain() | Updates the main each frame. |
| updateFrameCount() | Updates the frame count each frame. |
| updateInputData() | Updates the input data each frame. |
| updateEffekseer() | Updates the effekseer each frame. |
| updateScene() | Updates the scene each frame. |
Other 13
| checkBrowser() | Check browser. |
| checkPluginErrors() | Check plugin errors. |
| determineRepeatNumber() | Determine repeat number. |
| terminate() | Terminate. |
| reloadGame() | Reload game. |
| catchException() | Catch exception. |
| catchNormalError() | Catch normal error. |
| catchLoadError() | Catch load error. |
| catchUnknownError() | Catch unknown error. |
| goto() | Goto. |
| snap() | Snap. |
| snapForBackground() | Snap for background. |
| backgroundBitmap() | Background bitmap. |
Setup & Creation
initialize
static sourceSceneManager.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
initGraphics
static sourceSceneManager.initGraphics()
Initializes the graphics. (Same as the RPG Maker MZ method of this name.)
initAudio
static sourceSceneManager.initAudio()
Initializes the audio. (Same as the RPG Maker MZ method of this name.)
initVideo
static sourceSceneManager.initVideo()
Initializes the video. (Same as the RPG Maker MZ method of this name.)
initInput
static sourceSceneManager.initInput()
Initializes the input. (Same as the RPG Maker MZ method of this name.)
setupEventHandlers
static sourceSceneManager.setupEventHandlers()
Setup event handlers. (Same as the RPG Maker MZ method of this name.)
prepareNextScene
static sourceSceneManager.prepareNextScene()
Prepare next scene. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isFinalUpdateOfFrame
static sourceSceneManager.isFinalUpdateOfFrame()
Whether this update is the one whose results will actually be displayed.
Details
Whether this update is the one whose results will actually be displayed.
True outside the catch-up loop as well, so anything calling updateMain
directly (a plugin, a test) still draws.
isGameActive
static sourceSceneManager.isGameActive()
Whether it is game active. (Same as the RPG Maker MZ method of this name.)
isSceneChanging
static sourceSceneManager.isSceneChanging()
Whether it is scene changing. (Same as the RPG Maker MZ method of this name.)
isCurrentSceneBusy
static sourceSceneManager.isCurrentSceneBusy()
Whether it is current scene busy. (Same as the RPG Maker MZ method of this name.)
isNextScene
static sourceSceneManager.isNextScene(sceneClass)
Whether it is next scene. (Same as the RPG Maker MZ method of this name.)
isPreviousScene
static sourceSceneManager.isPreviousScene(sceneClass)
Whether it is previous scene. (Same as the RPG Maker MZ method of this name.)
Actions
run
static sourceSceneManager.run(sceneClass)
Run. (Same as the RPG Maker MZ method of this name.)
showDevTools
static sourceSceneManager.showDevTools()
Shows the dev tools. (Same as the RPG Maker MZ method of this name.)
changeScene
static sourceSceneManager.changeScene()
Changes the scene. (Same as the RPG Maker MZ method of this name.)
push
static sourceSceneManager.push(sceneClass)
Push. (Same as the RPG Maker MZ method of this name.)
pop
static sourceSceneManager.pop()
Pop. (Same as the RPG Maker MZ method of this name.)
exit
static sourceSceneManager.exit()
Exit. (Same as the RPG Maker MZ method of this name.)
clearStack
static sourceSceneManager.clearStack()
Clears the stack. (Same as the RPG Maker MZ method of this name.)
stop
static sourceSceneManager.stop()
Stop. (Same as the RPG Maker MZ method of this name.)
resume
static sourceSceneManager.resume()
Resume. (Same as the RPG Maker MZ method of this name.)
Events, Commands & Input
onError
static sourceSceneManager.onError(event)
Called when error happens. (Same as the RPG Maker MZ method of this name.)
onReject
static sourceSceneManager.onReject(event)
Called when reject happens. (Same as the RPG Maker MZ method of this name.)
onUnload
static sourceSceneManager.onUnload()
Called when unload happens. (Same as the RPG Maker MZ method of this name.)
onKeyDown
static sourceSceneManager.onKeyDown(event)
Called when key down happens. (Same as the RPG Maker MZ method of this name.)
onSceneTerminate
static sourceSceneManager.onSceneTerminate()
Called when scene terminate happens. (Same as the RPG Maker MZ method of this name.)
onSceneCreate
static sourceSceneManager.onSceneCreate()
Called when scene create happens. (Same as the RPG Maker MZ method of this name.)
onBeforeSceneStart
static sourceSceneManager.onBeforeSceneStart()
Called when before scene start happens. (Same as the RPG Maker MZ method of this name.)
onSceneStart
static sourceSceneManager.onSceneStart()
Called when scene start happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
static sourceSceneManager.update(deltaTime)
One refresh: the updates it owes.
Details
One refresh: the updates it owes. Returns how many ran, which tells
Graphics a refresh with none changed nothing it draws
(Graphics._frameChanged); undefined when the loop stopped on an error.
updateMain
static sourceSceneManager.updateMain()
Updates the main each frame. (Same as the RPG Maker MZ method of this name.)
updateFrameCount
static sourceSceneManager.updateFrameCount()
Updates the frame count each frame. (Same as the RPG Maker MZ method of this name.)
updateInputData
static sourceSceneManager.updateInputData()
Updates the input data each frame. (Same as the RPG Maker MZ method of this name.)
updateEffekseer
static sourceSceneManager.updateEffekseer()
Updates the effekseer each frame. (Same as the RPG Maker MZ method of this name.)
updateScene
static sourceSceneManager.updateScene()
Updates the scene each frame. (Same as the RPG Maker MZ method of this name.)
Other
checkBrowser
static sourceSceneManager.checkBrowser()
Check browser. (Same as the RPG Maker MZ method of this name.)
checkPluginErrors
static sourceSceneManager.checkPluginErrors()
Check plugin errors. (Same as the RPG Maker MZ method of this name.)
determineRepeatNumber
static sourceSceneManager.determineRepeatNumber(deltaTime)
Determine repeat number. (Same as the RPG Maker MZ method of this name.)
terminate
static sourceSceneManager.terminate()
Terminate. (Same as the RPG Maker MZ method of this name.)
reloadGame
static sourceSceneManager.reloadGame()
Reload game. (Same as the RPG Maker MZ method of this name.)
catchException
static sourceSceneManager.catchException(e)
Catch exception. (Same as the RPG Maker MZ method of this name.)
catchNormalError
static sourceSceneManager.catchNormalError(e)
Catch normal error. (Same as the RPG Maker MZ method of this name.)
catchLoadError
static sourceSceneManager.catchLoadError(e)
Catch load error. (Same as the RPG Maker MZ method of this name.)
catchUnknownError
static sourceSceneManager.catchUnknownError(e)
Catch unknown error. (Same as the RPG Maker MZ method of this name.)
goto
static sourceSceneManager.goto(sceneClass)
Goto. (Same as the RPG Maker MZ method of this name.)
snap
static sourceSceneManager.snap()
Snap. (Same as the RPG Maker MZ method of this name.)
snapForBackground
static sourceSceneManager.snapForBackground()
Snap for background. (Same as the RPG Maker MZ method of this name.)
backgroundBitmap
static sourceSceneManager.backgroundBitmap()
Background bitmap. (Same as the RPG Maker MZ method of this name.)