First Launch Issue

Hi everyone,

I built a simple game by using Corona. I have a interesting problem. When you open the game first time after you install it via iTunes, background image of the game comes on everything(buttons, logos…).

The first lines in main.lua:
display.setStatusBar( display.HiddenStatusBar )
background = display.newImage(“mainBackground.png”,0,0)

After first launch everything go normal. The problem is only for first launch. What can the problem be? I thought if API has a depth system, maybe I can force background image to move it back?

Thank you [import]uid: 5629 topic_id: 1650 reply_id: 301650[/import]

Is this problem only with iTunes installation or does it act the same way if you install the app using the Xcode Organizer? Are the buttons and logs being displayed, invisible objects that are displayed later?

Creating your mainBackground image as the first object puts it below all other objects (unless you re-insert it later). If you wanted the background image to hide all other objects, you could either add it last or re-insert the object after everything else is displayed with object.parent:insert( object ).

This is the first time I’ve heard of this problem. Can you provide more details about what your code is doing or post some sample code that demonstrates the problem? You could also send it to support at anscamobile.com.

-Tom [import]uid: 7559 topic_id: 1650 reply_id: 4777[/import]

Hi Tom,

Problem was io. I made a simple mistake but I couldn’t figure out it until I tested on device. Because in simulator and terminal there wasn’t any error and worked great.

Thank you [import]uid: 5629 topic_id: 1650 reply_id: 4780[/import]

Hello,
I have a small question. I remember seeing an example of how to call a loading screen but I cannot seem to find it again. Can anyone point me to it or just post a script?
Thanks
Albert [import]uid: 4865 topic_id: 1650 reply_id: 4932[/import]