Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Tier2, when the launch images disappeared, there is a white screen.

Author
Message
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 10th Nov 2011 07:06
why this happen? how to get rid of the white screen?

give my best
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Nov 2011 13:04
It happens to me sometimes, but not all the time. I still can't spot the problem.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 12th Nov 2011 00:32
The trick is that when the loading page ends, you are launched instantly into the code of your app. If you then decide to start loading lots of media in taking many seconds, then you get a noticable empty screen. The trick is to add a load and render instruction at the very start of your code so you have something nice to look at while your media is loaded for your app. Something like:

CreateSprite ( 1, LoadImage ( "loading2.png" ) ) : Sync()

Just drop in a loading2.png image file into your media folder and where you would normally see a white screen you now see a nice piccy.

I drink tea, and in my spare time I write software.
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 12th Nov 2011 04:33
wow, it's a good trick. Thank you very much.

give my best

Login to post a reply

Server time is: 2024-04-23 11:12:29
Your offset time is: 2024-04-23 11:12:29