SceneManager:changeScene: Difference between revisions
From GiderosMobile
Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' SceneManager<br/> === Description === Transitions between two scenes. <source lang="lua"> SceneManager:changeScene..." |
mNo edit summary |
||
| Line 9: | Line 9: | ||
=== Values === | === Values === | ||
'''scene''' ( | '''scene''' (string) the name of the scene to transition to<br/> | ||
'''duration''' (number) transition duration<br/> | '''duration''' (number) transition duration in seconds<br/> | ||
'''transition''' (constant) transition type<br/> | '''transition''' (constant) transition type<br/> | ||
'''easing''' (constant) easing type<br/> | '''easing''' (constant) easing type<br/> | ||
Revision as of 03:29, 5 November 2020
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)