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.

Dark GDK / loading screen

Author
Message
tehgoat
13
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 14th May 2011 05:35
I made a menu in the game I'm making that sets the variable gameInitiated to 1. When it is set to 1 I have the main loop call the function that loads my objects. My problem is that during this time the objects are loading it's like the game is frozen, I'm basically stuck at the menu screen and once it is done loading the game starts, so I wanted to put an image in for the background during the time it is loading. It seems to ignore it though and goes straight to the object loading function and the menu remains and goes straight to the game play. It only seems to work properly when I take the modelCall() out. Can anyone help me out or guide me in a better direction for doing something like this?

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 14th May 2011 17:41
perhaps you have something like this:

pseudo


you need dbSync ( ) after the "hide menu and show background" part so the background image is shown

hope i got it right, you didn't provide enough info though

Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 14th May 2011 19:03
Just insert a dbSync() before your modelCall() function, I'm assuming all that function does is load all the objects needed for the game, and nothing else?

tehgoat
13
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 14th May 2011 22:03
Thanks guys that solved my problem

Login to post a reply

Server time is: 2024-11-19 10:27:42
Your offset time is: 2024-11-19 10:27:42