Load, Unload an OSM scene.

maxxoros

26-04-2006 05:53:06

So, let me explain
===
First, we enter game, we see the first scene
After chosing the kind of game.we unload this scene and load the second scene.
===
how could we do this.
===
could anyone help me

Lioric

26-04-2006 19:15:46


Load the main OSM scene (call the "LoadScene" method with "main.osm" parameter)
store the user selected value (what new scene to load or what kind of game)
scenemanager->clearScene()
Using the selected value form the user, convert it to the new scene filename, i.e "chapter1.osm"
Load this new OSM scene (call the "LoadScene" method with the "chapter1.osm" parameter)


The "LoadScene" method can be made of the scene load code provided on the demo application, and you can call with the filename of the new scene