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]
