Hey I’m having some difficulty with my flow from scene to scene. I have all my .lua files I need (using SpriteDeck). I am still learning Corona and I am very new. Anyway, what I have so far is my main.lua file which starts with the menu.lua file (my game’s main menu). My StartButton is created, and the name of the scene it switches to is tutorial1.lua. Using this method, tutorial1.lua loads up fine, but if I press the back button to go to the main menu again none of the buttons work. I’m guessing its spawning a new menu.lua file? I hope I described this clearly. The start button code in my menu.lua file looks like this (and is the same kinda thing for my back button in the tutorial1.lua file:
[code]module(…, package.seeall)
function newMenu ()
local super = require("_menu")
local this = super:newMenu()
local start = require(“tutorial1”)
local handleStartTouch = function ( event )
if (event.phase == “ended”) then
local start = start:newTutorial1()
start:setReferencePoint(display.TopLeftReferencePoint)
start.x = 0
start.y = 0
end
end
[import]uid: 16789 topic_id: 5809 reply_id: 305809[/import]