director

Summary
director
Functions
director.loadSceneLoads a scene but doesn’t display it yet.
director.gotoSceneTransitions to a scene.

Functions

director.loadScene

function director.loadScene(file,
param1,
param2)

Loads a scene but doesn’t display it yet.  The created scene will receive the createScene event.

Parameters

fileThe name of the file to load.

Returns

The created scene.

See Also

director.gotoScene

director.gotoScene

function director.gotoScene(sceneName,
params)

Transitions to a scene.  The scene is loaded if it has not already been.

Parameters

scenethe name of the scene
paramsan optional table specifying the transition to use and the parameters of that transition

See Also

director.loadScene

function director.loadScene(file,
param1,
param2)
Loads a scene but doesn’t display it yet.
function director.gotoScene(sceneName,
params)
Transitions to a scene.
Close