SceneManager:changeScene

Available since: Gideros 2020.2
Class: SceneManager

Description

Transitions between two scenes.

SceneManager:changeScene(scene, duration, transition, easing)

Values

scene (string) the name of the scene to transition to
duration (number) transition duration in seconds
transition (constant) transition type
easing (constant) easing type

Example

scenemanager:changeScene("level1", 2, SceneManager.moveFromRight, easing.outBack)