Hi
I am new to Corona but given the lack of responses, I think this is what you need.
On your main.lua file use “splash” at the change scene line.
Create a new .lua file (call it splash.lua) and then use this code changing image, button name/position etc to suit yourself. Then copy this code into the splash.lua and save it.
module(…, package.seeall)
function new()
local localGroup = display.newGroup()
–> This is how we start every single file or “screen” in our folder, except for main.lua
– and director.lua
–> director.lua is NEVER modified, while only one line in main.lua changes, described in that file
local background = display.newImage (“splash.png”)
localGroup:insert(background)
–> This sets the background
local menubutton = display.newImage (“menubutton.png”)
menubutton.x = 259
menubutton.y = 315
localGroup:insert(menubutton)
local function pressMenu (event)
if event.phase == “ended” then
director:changeScene (“menu2”)
end
end
menubutton:addEventListener (“touch”, pressMenu)
return localGroup
end
When your app is launched it will open up your 'splash ’ page with your button. The button and the scene change should then direct you to your play.lua.
Hope this helps. [import]uid: 45029 topic_id: 10837 reply_id: 39439[/import]