SceneManager:changeScene

From GiderosMobile
Revision as of 04:29, 5 November 2020 by MoKaLux (talk | contribs)

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)