Class: Scene_Base

(abstract) Scene_Base()

(abstract) new Scene_Base()

The Superclass of all scene within the game. Scene_Boot, Scene_Title, Scene_Gameover, Scene_Map, Scene_Battle, Scene_MenuBase

Extends

Methods

addChild(child) → {Object}

[super] Adds a child to the container.
Parameters:
Name Type Description
child Object The child to add
Inherited From:
Returns:
The child that was added
Type
Object

addChildAt(child, index) → {Object}

[super] Adds a child to the container at a specified index.
Parameters:
Name Type Description
child Object The child to add
index Number The index to place the child in
Inherited From:
Returns:
The child that was added
Type
Object

addWindow()

Add the children window to the windowLayer processing.

attachReservation()

Attach a reservation to the reserve queue.

checkGameover()

Check whether the game should be triggering a gameover.

create()

Create the components and add them to the rendering process.

createFadeSprite()

Create a Screen sprite for the fadein and fadeOut purpose and add it to the rendering process.

createWindowLayer()

Create the layer for the windows children and add it to the rendering process.

detachReservation()

Remove the reservation from the Reserve queue.

fadeOutAll()

Slowly fade out all the visual and audio of the scene.

fadeSpeed() → {Number}

Return the screen fade speed value.
Returns:
Return the fade speed
Type
Number

initialize()

Create a instance of Scene_Base.
Overrides:

isActive() → {Boolean}

Returns whether the scene is active or not.
Returns:
return true if the scene is active
Type
Boolean

isBusy() → {Boolean}

Return whether the scene is busy or not.
Returns:
Return true if the scene is currently busy
Type
Boolean

isReady() → {Boolean}

Return whether the scene is ready to start or not.
Returns:
Return true if the scene is ready to start
Type
Boolean

popScene()

Pop the scene from the stack array and switch to the previous scene.

removeChild(child) → {Object}

[super] Removes a child to the container.
Parameters:
Name Type Description
child Object The child to remove
Inherited From:
Returns:
The child that was removed
Type
Object

removeChildAt(index) → {Object}

[super] Removes a child from the specified index position.
Parameters:
Name Type Description
index Number The index to get the child from
Inherited From:
Returns:
The child that was removed
Type
Object

slowFadeSpeed() → {Number}

Return a slow screen fade speed value.
Returns:
Return the fade speed
Type
Number

start()

Start the scene processing.

startFadeIn(durationopt, whiteopt)

Request a fadeIn screen process.
Parameters:
Name Type Attributes Default Description
duration Number <optional>
30 The time the process will take for fadeIn the screen
white Boolean <optional>
false If true the fadein will be process with a white color else it's will be black

startFadeOut(durationopt, whiteopt)

Request a fadeOut screen process.
Parameters:
Name Type Attributes Default Description
duration Number <optional>
30 The time the process will take for fadeOut the screen
white Boolean <optional>
false If true the fadeOut will be process with a white color else it's will be black

stop()

Stop the scene processing.

terminate()

Terminate the scene before switching to a another scene.

update()

Update the scene processing each new frame.

updateChildren()

Update the children of the scene EACH frame.

updateFade()

Update the screen fade processing.