Open LUA document on Touch

I’m having trouble with this one. Can someone help? I want an other LUA document (game.lua) to open when you press play.
Here’s my code:

[code]
function loadGame(event)
if event.phase == “ended” then
local level = require(game)
level.load(game)
end
end

function showSplash()
bg = display.newImage( “bg.png” )
play = display.newImage( “play.png” )
play:scale( .5, .5 )
play.y = 200
play.addEventListener( “touch”, loadGame )
end
[/code] [import]uid: 25216 topic_id: 11760 reply_id: 311760[/import]

did you tried a director class? its so much easier with it to change scenes [import]uid: 16142 topic_id: 11760 reply_id: 42829[/import]

Hey :slight_smile:

http://techority.com/2010/11/19/how-to-use-scenesscreens-in-corona/

That’s a simple tutorial with a sample project explaining director; as darkconsoles said it’s likely what you want.

Peach :slight_smile: [import]uid: 52491 topic_id: 11760 reply_id: 42864[/import]