[Resolved ]Storyboard - simple Back button

Hello!

Just started using storyboard. Looks very promising!

I am creating a simple game with currently 4 scenes: Menu, singleplayer, multiplayer and settings.

I want the settings scene to be available from all the other scenes, and I want settings only to contain one navigation button: Back.

Back will simply let the user get back to the scene where shim pressed the settingsbutton.

How can this be written in a clean, simple and effective matter?

Thank you!
[import]uid: 181568 topic_id: 33901 reply_id: 333901[/import]

Found this. Works fine.

  
local storyboard = require "storyboard"  
   
-- The previous scene was "scene1"  
local lastScene = storyboard.getPrevious()  
   
print( lastScene ) -- output: scene1  
  

[import]uid: 181568 topic_id: 33901 reply_id: 134790[/import]

Also you can call scenes as overlays, then you just close the overlay.

Dave [import]uid: 117617 topic_id: 33901 reply_id: 134796[/import]

Found this. Works fine.

  
local storyboard = require "storyboard"  
   
-- The previous scene was "scene1"  
local lastScene = storyboard.getPrevious()  
   
print( lastScene ) -- output: scene1  
  

[import]uid: 181568 topic_id: 33901 reply_id: 134790[/import]

Also you can call scenes as overlays, then you just close the overlay.

Dave [import]uid: 117617 topic_id: 33901 reply_id: 134796[/import]