To date my game loads very quickly so my Default.png which doubles as my splash screen is gone in a flash. Is there someway to set the minimum time (e.g., 1 second) that the Default screen is displayed or do I need to implement a splash screen in code?
Thanks. [import]uid: 16901 topic_id: 11933 reply_id: 311933[/import]
timer.performWithDelay() is probably what you need to delay the splash screen.
http://developer.anscamobile.com/reference/index/timerperformwithdelay [import]uid: 14218 topic_id: 11933 reply_id: 43508[/import]
The default.png is displayed by the OS and not by corona. Its removed and control passed to your app when it signals its loaded.
You have 2 options:
-
If your game loads that fast, dont bother with the default.png and load it inside corona, and then timer.performWithDelay after x ms to remove it and start your game
-
use default.png, and in main.lua display the same image again an then use timer.performWithDelay to delay removing it. This might work ok, but most likely you’ll have a slight flash as control is passed to your app. [import]uid: 8872 topic_id: 11933 reply_id: 43582[/import]
Thanks… that all makes sense, [import]uid: 16901 topic_id: 11933 reply_id: 43693[/import]