scene menu and remembering previous scene?
eddysparks
Member Posts: 24
Ok a harder task in question now.
Imagine i have multiple scenes for instance 20. I want to go from scene to scene in order which is relatively simple.... but..... i want to have a button that will take me to a scene menu that will allow me to go to any of the 20 scenes. BUT ALSO return me to what ever scene i was prior to going to the scene menu.
Does anyone have any examples of how to do this or something similar?
Imagine i have multiple scenes for instance 20. I want to go from scene to scene in order which is relatively simple.... but..... i want to have a button that will take me to a scene menu that will allow me to go to any of the 20 scenes. BUT ALSO return me to what ever scene i was prior to going to the scene menu.
Does anyone have any examples of how to do this or something similar?
Comments
Have a behavior in each scene that says change attribute game.currentScene to ___
In each scene fill in the blank with a number that represents that scene.
Then in your menu have a back button actor that has the rule:
Rule - when touch pressed
--------Rule - when game.currentScene = 1
-------------change scene to level1
--------Rule - when game.currentScene = 2
-------------change scene to level2
and so on