Thanks but I was trying to follow the tutorial I shared and it works but the menu (part I did) shows behind the current scene in the back. I tried calling toFront() and that did nothing. Does anyone know why? I called the require at the beginning and then changed to end of scene and same also.
Menu LUA file:
local t = {} t.showMenu = function() imgBack = display.newImageRect( "images/imgShadow.png", 450, 0 ) imgBack.anchorX = 0 imgBack.anchorY = 0 imgBack.x = 0 imgBack.y = 0 imgBack:toFront() end return t
Called it like this from scene to show menu in.
local function btnMenuButtonEvent( event ) if ("ended" == event.phase ) then examp2 = require ( "sceneMenu" ) examp2.showMenu() end end