Composer showOverlay and gotoScene

Newbie here… 

So I have 3 files my main.lua , LandingPage.lua and FlyoutMenu.lua. 

I need to make my 2 lua file visible at the same time even if scenes changes, rather I need to make my  Fly out Menu always visible. 

I tried to call two files at the same time in my main.lua 

Yes, LandingPage.lua overlapped my FlyoutMenu.lua…
 

Tried using composer.showOverlay so two files was visible but … the problem was I still need to change scenes, so if I loaded another file it will overlap my flyout again.

Any other Idea to keep my flyout menu always  visible?

Thank you… 

 

You can only have one scene on the screen at a time.  Overlays are the exception.  You can create an overlay scene that doesn’t have a full background and slide it in from an edge to do what you want to do.  It should sit on top of any other Composer scene.  You can only have one overlay.

However, because overlays are basically complete scenes, it might be more work than a simple sliding panel.  We did a tutorial back in April for this very thing.  Please read:   http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

and see if that will work for you.

Rob

You can only have one scene on the screen at a time.  Overlays are the exception.  You can create an overlay scene that doesn’t have a full background and slide it in from an edge to do what you want to do.  It should sit on top of any other Composer scene.  You can only have one overlay.

However, because overlays are basically complete scenes, it might be more work than a simple sliding panel.  We did a tutorial back in April for this very thing.  Please read:   http://coronalabs.com/blog/2014/04/08/widgets-creating-a-sliding-panel/

and see if that will work for you.

Rob