ChangeScene

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
Load a scene from an object scene.
+
Change the scene of the current level :
You have to load a scene to use this function.
+
  
 
     scene = getScene("nextScene")
 
     scene = getScene("nextScene")
 
     changeScene(scene)
 
     changeScene(scene)
 +
 +
''note: the loading time depends of the number of physics objects to initialize and the data type of the scene,''<br>
 +
''a scene with 'Dynamic' data mode implies the loading of the textures and sounds of the scene,''<br>
 +
''when a scene with a 'Static' data mode already have its textures and sounds in memory.''

Revision as of 23:54, 11 January 2013

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox