Splash Screen Settings...

Hi Everyone and Happy New Year :slight_smile:

I’ve finally broken down and bought a MacBook Pro to develop on since I was using a Hackintosh :slight_smile:

Anyhow, I’ve been trying to figure out how to set some settings for the splash screen image (Default.png). I wanted to remove the carrier bar like I do in my game and also have it wait for about 5 sec before bouncing into the game’s main screen.

Is there any settings that can be set in either the build.setting or config.lua to control the image? If anyone has any clues I would greatly appreciate it. Thanks :slight_smile:

Joe [import]uid: 12765 topic_id: 4769 reply_id: 304769[/import]

Not sure if this topic will help, but it has plenty of build/config examples: http://developer.anscamobile.com/forum/2010/11/30/splash-screen-not-showing

Are you hiding the status bar inside build.lua:
[lua]plist = {
UIStatusBarHidden=true,
},[/lua]

Have you tried creating an image object from the splash screen on your first call in main.lua and then using a timer to fire your game function:

[lua]splash = display.newImage( “Default.png” ) – Load splash image
timer.performWithDelay(5000, loadMenu ) – Fire main menu after 5 seconds

function loadMenu()
splash:removeSelf() – Cleanup splash image
splash = nil

– Rest of Menu Code
end[/lua]

Not sure if there is any gap in the draw cycle between splash screen and main.lua as I haven’t tried it. [import]uid: 11393 topic_id: 4769 reply_id: 15241[/import]

Hi,
Thanks for the tips. I added the plist code to both the config.lua and also the build.settings files. Neither was a success. I was thinking of just adding it in with the timer as you mentioned in the main.lua but my concern was that upon each reset the logo you display again. I’m just not sure if that would be the standard flow for the game at restart so I’m debating that atm.

I’ll bounce it around some tonight when I’m running through the code…thanks.

Joe… [import]uid: 12765 topic_id: 4769 reply_id: 15260[/import]