Hi,
Write the current scene name/index to a custom current scene variable, and transport that to a custom previous scene variable on the onnewscene event and set a new 'current scene'..
Like
|
Quellcode
|
1
|
<event name="prevscene" keep="true" onnewscene="if(notfirstscene, prev_scene = cur_scene; cur_scene = xml.scene;, notfirstscene = true; cur_scene = xml.scene;);" />
|
Then only in the first scene there is no previous scene.. which you could set manually or make some button invisible or so..
.. or something like that..
Hope it helps,
Tuur