On Touch, open new Lua document

Keep in mind that I am extremely new to iOS development and the Lua language, I come from a web development background.

What I’m trying to accomplish is, that when the user taps anywhere on the screen, then a new Lua document will be displayed.

For instance, on the splash screen there is text that says “Touch here to continue”
[lua]local ttc = display.newText( “Touch to continue.”, 160, 800, “font”, 50 )[/lua]
so that when the user touches afore mentioned text, the menu loads.

Thanks, and apologies for my noobieness [import]uid: 25216 topic_id: 9704 reply_id: 309704[/import]

Hi, it depends on your framework but the idea is basically this:
[lua]local function loadLevel(event)
if event.phase == “ended” then
– cleanup, init, …

– load level
local level = require(levelFile)
level.load() – or whatever
end
end

local ttc = display.newText( “Touch to continue.”, 160, 800, “font”, 50 )

ttc:addEventListener( “touch”, loadLevel )[/lua] [import]uid: 51516 topic_id: 9704 reply_id: 35346[/import]