ChangeScene
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 6: | Line 6: | ||
changeScene(scene) | changeScene(scene) | ||
− | + | '''Note:''' the loading time depends of the number of physics objects to initialize and the data type of the scene, a scene with 'Dynamic' data mode implies the loading of the textures and sounds of the scene, when a scene with a 'Static' data mode already have its textures and sounds in memory. | |
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
[[Category:Lua function]] | [[Category:Lua function]] | ||
[[Category:Scene]] | [[Category:Scene]] |
Revision as of 16:51, 8 February 2014
changeScene(scene)
Change the scene of the current level :
scene = getScene("nextScene") changeScene(scene)
Note: the loading time depends of the number of physics objects to initialize and the data type of the scene, a scene with 'Dynamic' data mode implies the loading of the textures and sounds of the scene, when a scene with a 'Static' data mode already have its textures and sounds in memory.