Thanks for the reply burthan.
I want multiple level’s on the " Level selector screen "
Ex:
5 levels, if you press on picture 1 you go to level 1, picture 2 you go to level 2 etc etc
Do I need to add this multiple times ?
local function onObjectTouch( event ) local level = event.target.id if event.phase == "began" then storyboard.gotoScene( level1, "fade", 400 ) local function onObjectTouch( event ) local level = event.target.id if event.phase == "began" then storyboard.gotoScene( level2, "fade", 400 )
And how does Corona / Lua know that when you press the first picture, you go to level 1 etc
There’s nothing in that function " onObjectTouch " that tells it when you press pic 1,
you go to Level.Lua
I’m sorry if I’m writing this complicated, I just want to understand this.
Thanks again!