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.

Author
Message
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 22nd Mar 2010 22:47
I want a picture to display while loading instead of just a black screen. Im not really sure how to do this. Maybe a percentage or something too.

Thanks
Kryogenik
16
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 22nd Mar 2010 22:54
I think you could load an image before you start loading and just put it on the screen with paste image. As for percentage, you could put text on the screen and sync in the middle of it, like this:

You could just guess where to put the different percentages in the loading, hope that helps.

Codesurge is so awesome, thanks Hyrichter.
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 22nd Mar 2010 23:58
Naw the screen stays black and the image is not displayed.
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 23rd Mar 2010 00:14
Ok I found it out.


I put this at the beginning of my program.
Caleb7
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location:
Posted: 23rd Mar 2010 00:42
In the initial portion of your game you should have the loading processes divided in subroutines.
like this:


You could make a function that displays the image and writes the percentage of loading progress.


If your image does not take up the whole screen, then you may get to see some objects appearing in the background. That's not always desirable so you should clear the camera view and set it back up again after the loading screen.

Hope this helps!

Randomnosity is a special influence upon man kind allowing one to think outside the usual bouderies and into a fantastic world created by oneself. Elephants don't cut it

Login to post a reply

Server time is: 2026-07-26 23:40:36
Your offset time is: 2026-07-26 23:40:36