Author Topic: Black screen at launch time  (Read 4151 times)


  • Member
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Black screen at launch time
« on: Thu, Jul 26, 2012 »
I guess there aren't really anyone around here anymore. But I've got this irritating problem and just because...

The flow of starting an iOS app is basically

[user taps app icon] -> [launch pic displays] -> [first controller view displays]

No gaps anywhere...

Now with Flixel iOS it kind of looks like this

[user taps app icon] -> [launch pic displays] -> (black screen) -> [first state view displays]

There seems to be no way (that I know of yet...) to get rid of that first black screen. I get the feeling that Flixel initiates the game engine openGL stuff and directly puts that first empty buffer to the screen, then goes on to load/cache the first state, and only when that is done the state's contents are drawn to screen. If you've got a lot of stuff in that first state, that could take a while, resulting in a long black screen... I tried stripping down the first state to only show like one picture, but there is still a noticable black screen appearing for like 1/100th second or something.

Going to other states after the initial state however renders no black screen AFAIK.

Any ideas?


  • Guest
Re: Black screen at launch time
« Reply #1 on: Thu, Apr 25, 2013 »
Try a preloader. No idea if that will work at all though, because i have no experience with iOS


  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Black screen at launch time
« Reply #2 on: Sun, Apr 28, 2013 »
Pretty sure I got a smooth transition with Super Lemonade Factory. Try setting the background color of the first state.
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart