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.

DarkBASIC Discussion / Load/Splash screen

Author
Message
HenryTj
19
Years of Service
User Offline
Joined: 2nd Nov 2005
Location:
Posted: 7th Jul 2006 03:52
I want to add a "Loading..." or splash screen to my game. I want it show it on the screen as one of the very first things I do. THen to keep it there as I load all the other media and set things up. Then replace it with the game just before the game loop starts. Can I do this easily with a 3D game? What I have tried with simply loading an image to the screen doesnt work as the following 3D operations interfere.

Henry
D Ogre
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 7th Jul 2006 04:33
Try this.

HenryTj
19
Years of Service
User Offline
Joined: 2nd Nov 2005
Location:
Posted: 9th Jul 2006 06:32 Edited at: 9th Jul 2006 06:33
THis didn't quite work. Through trail and error, I found that I had to Hide each object as I loaded it, and then Show the object just before starting the game loop. Other wise the objects showed up overtop the Loading splash image.

Henry
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 9th Jul 2006 14:34 Edited at: 9th Jul 2006 14:36
Editing D Ogre's code:


Does that one work? I'm not so sure that hiding every object is the best way to do it...

Edit: WAIT NEVERMIND... THIS IS DB NOT DBPRO THAT WON'T WORK

My Functions: Mine
Post yours: Post
The Wilderbeast
19
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 15th Jul 2006 18:41
this will only work if you have lots of objects to load, otherwise it won't stay on the screen for long enough to read>>>


hope it helps!



OMG It's the Wilderbeast
Canadian Bush Air | Bush flying at its best! |http://www.canadian-bush-air.tk

Login to post a reply

Server time is: 2025-05-25 08:18:35
Your offset time is: 2025-05-25 08:18:35