Showing Loading screen between levels?
by Bret Patterson · in iTorque 2D · 06/21/2009 (11:00 am) · 6 replies
How can I show a simple loading screen between levels? When I load a new level I do the following:
call endLevel() -- removes everything and makes the screen black.
call loadLevel() -- takes about 4-9 seconds
I'd like to showing a loading screen (static image) between the time endlevel finishes and loadLevel() completes but I'm not sure how to do this.
call endLevel() -- removes everything and makes the screen black.
call loadLevel() -- takes about 4-9 seconds
I'd like to showing a loading screen (static image) between the time endlevel finishes and loadLevel() completes but I'm not sure how to do this.
About the author
#2
07/29/2009 (1:57 am)
What exactly engine do during loadlevel()? we have one level for menu (just background and GUI) and one level for game and loading menu is cca 5 sec long and it's longer then loading game level - where can be problem? in all datablock we have preload=0
#3
07/29/2009 (6:10 am)
Anyone know how to make a progress bar for the loading screen? All I have is a static full-screen image.
#4
07/29/2009 (8:36 am)
What I did was set the game to watch a number of standard objects that exist in each level. We do a load level loop, so as long as these objects do not exist, we keep looping. What could easily be done with the same logic is have a counter... the more of these objects that exist, the further along the status bar is.
#5
07/30/2009 (11:01 am)
rather than tying your loading screen to the actual progress of a level load, you could measure the average time it takes for ALL your levels to load, take the upper value (in seconds), and make a standard animated progress bar loading screen based on that averaged time. much less of a headache, i imagine.
#6
11/05/2009 (8:02 am)
Ronald, Can you post example code?
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
The gui optimally would contain a loading text or something that shows that it is still "active" and not locked.