The runtime game that is using the scene stack
Return the current gdjs.RuntimeScene being played, or null if none is run.
Pause the scene currently being played and start the new scene that is specified in options.sceneName
.
If options.externalLayoutName
is set, also instantiate the objects from this external layout.
Contains the scene name and optional external layout name to instantiate.
Optional
deprecatedExternalLayoutName: stringDeprecated, use options.externalLayoutName
instead.
Start the scene in options.sceneName
, replacing the one currently being played.
If options.clear
is set to true, all running scenes are also removed from the stack of scenes.
Contains the scene name and optional external layout name to instantiate.
Optional
deprecatedClear: booleanDeprecated, use options.clear
instead.
Hold the stack of scenes (gdjs.RuntimeScene) being played.