Game Development Community

Preventing the FLASH from Default.png to the first scene

by Richard Skala · in iTorque 2D · 05/31/2011 (1:06 pm) · 7 replies

I noticed that when the iPhone switches from the first loading image (Default.png) to the first t2d scene, there is a quick, white flash on screen. Is there a way to prevent this? Is it possible it is due to the way MainWindow.xib was set up? How have any of you fixed that?

#1
05/31/2011 (1:38 pm)
I've noticed it before, but not consistently. I'm fairly certain it is MainWindow.xib popping up first. To test this theory, edit the file and change its color or transparency. If the white flash becomes something else, say red, then we have the culprit and can address it.
#2
05/31/2011 (2:10 pm)
I opened up MainWindow.xib and I noticed that it is fully white. However, I am not that familiar with Interface Builder, so I don't know if it actually is affecting anything, and I don't know how to change the color (if it can be changed). I am getting ready to submit my application to the app store, so messing with that is risky for me at right now. After I submit, I'll play around with MainWindow.xib and see if it fixes the flash and report my findings here.
#3
05/31/2011 (4:49 pm)
A patchy fix would be to make whatever scene/image that comes up next be white, then perhaps fade in the text if necessary.

?:.




#4
05/31/2011 (9:34 pm)
Well, I'm used to "patchy" fixes, but I can't take the risk right now :)
#5
06/01/2011 (7:33 am)
I fixed this by changing the background color on the MainWindow.xib. My initial screen is black (for my logo) so it flashed white before my title screen. Since I changed the MainWindow.xib to black it's a more seamless transition.

I was able to reproduce this 100% on an iPhone4. It probably has to do with how quickly your initial level loads.
#6
06/01/2011 (10:07 am)
I have this too and hadn't gotten to addressing it. Cheers for the fix Joe
#7
06/01/2011 (11:07 am)
To change the MainWindow.xib background color, in Xcode find MainWindow.xib, double click it to open Interface Builder. Click on the window labeled "Window", then go to the "Inspector" window (Tools->Inspector) and go to the tab labeled "Window Attributes". Under the "View" section, there is a "Background" field. You can change the color there.

I changed the color to black, and this fixes the flash for me. Thanks for all the input everyone.