Class in reactor_managers.js

SceneManager

49 public functions in 6 groups · show internal (_) functions

The Database: everything Core loads at boot.

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 source
SceneManager.initialize()

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

initGraphics

static source
SceneManager.initGraphics()

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

initAudio

static source
SceneManager.initAudio()

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

initVideo

static source
SceneManager.initVideo()

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

initInput

static source
SceneManager.initInput()

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

setupEventHandlers

static source
SceneManager.setupEventHandlers()

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

prepareNextScene

static source
SceneManager.prepareNextScene()

Prepare next scene. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isFinalUpdateOfFrame

static source
SceneManager.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 source
SceneManager.isGameActive()

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

isSceneChanging

static source
SceneManager.isSceneChanging()

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

isCurrentSceneBusy

static source
SceneManager.isCurrentSceneBusy()

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

isNextScene

static source
SceneManager.isNextScene(sceneClass)

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

isPreviousScene

static source
SceneManager.isPreviousScene(sceneClass)

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

Actions

run

static source
SceneManager.run(sceneClass)

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

showDevTools

static source
SceneManager.showDevTools()

Shows the dev tools. (Same as the RPG Maker MZ method of this name.)

changeScene

static source
SceneManager.changeScene()

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

push

static source
SceneManager.push(sceneClass)

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

pop

static source
SceneManager.pop()

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

exit

static source
SceneManager.exit()

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

clearStack

static source
SceneManager.clearStack()

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

stop

static source
SceneManager.stop()

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

resume

static source
SceneManager.resume()

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

Events, Commands & Input

onError

static source
SceneManager.onError(event)

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

onReject

static source
SceneManager.onReject(event)

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

onUnload

static source
SceneManager.onUnload()

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

onKeyDown

static source
SceneManager.onKeyDown(event)

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

onSceneTerminate

static source
SceneManager.onSceneTerminate()

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

onSceneCreate

static source
SceneManager.onSceneCreate()

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

onBeforeSceneStart

static source
SceneManager.onBeforeSceneStart()

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

onSceneStart

static source
SceneManager.onSceneStart()

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

Updating & Drawing

update

static source
SceneManager.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 source
SceneManager.updateMain()

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

updateFrameCount

static source
SceneManager.updateFrameCount()

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

updateInputData

static source
SceneManager.updateInputData()

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

updateEffekseer

static source
SceneManager.updateEffekseer()

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

updateScene

static source
SceneManager.updateScene()

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

Other

checkBrowser

static source
SceneManager.checkBrowser()

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

checkPluginErrors

static source
SceneManager.checkPluginErrors()

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

determineRepeatNumber

static source
SceneManager.determineRepeatNumber(deltaTime)

Determine repeat number. (Same as the RPG Maker MZ method of this name.)

terminate

static source
SceneManager.terminate()

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

reloadGame

static source
SceneManager.reloadGame()

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

catchException

static source
SceneManager.catchException(e)

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

catchNormalError

static source
SceneManager.catchNormalError(e)

Catch normal error. (Same as the RPG Maker MZ method of this name.)

catchLoadError

static source
SceneManager.catchLoadError(e)

Catch load error. (Same as the RPG Maker MZ method of this name.)

catchUnknownError

static source
SceneManager.catchUnknownError(e)

Catch unknown error. (Same as the RPG Maker MZ method of this name.)

goto

static source
SceneManager.goto(sceneClass)

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

snap

static source
SceneManager.snap()

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

snapForBackground

static source
SceneManager.snapForBackground()

Snap for background. (Same as the RPG Maker MZ method of this name.)

backgroundBitmap

static source
SceneManager.backgroundBitmap()

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