Off the top of my head, I was thinking of doing this:
Create a splash.lua file, and load splash.lua from the main.lua file
local myLogo = display.newImage("logo.png")
myLogo.x = display.contentHeight/2
myLogo.y = display.contentWidth/2
myLogo.alpha = 0
transition.to( myLogo, {time=500, delay=500, alpha=1})
transition.to( myLogo, {time=500, delay=3500, alpha=0})
local changeScene = function()
director:changeScene("mainMenu", "fade")
end
timer.performWithDelay(4000, changeScene)
That is off the top of my head so it can probably be fine tuned to be more efficient, but that is the general idea behind it. If you check out Ghosts vs. Monsters or Martian Control (in the code exchage) you will see that John Beebe has used a method like this and it looks real nice. This is where I got the idea from, just dont remember the exact code and im on my iphone now. Check it out!
[import]uid: 9968 topic_id: 4553 reply_id: 14439[/import]