Difference between revisions of "SceneManager:changeScene"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' SceneManager<br/> === Description === Transitions between two scenes. <source lang="lua"> SceneManager:changeScene...")
 
m
Line 9: Line 9:
  
 
=== Values ===
 
=== Values ===
'''scene''' (table) the scenes list<br/>
+
'''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 05: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)