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.

Code Snippets / Simple loading screen, good effect, less lines

Author
Message
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 29th Mar 2005 18:23
Here is the code to a simple loading screen i did, to tell you more just use the code snippet.

Enjoy

BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Mar 2005 19:25
The idea of a loading screen is that it gives you something to look at whilst everything is, er....loading! Your WAIT statements simply delay the eventual start of the game.

Cutting down to bare functions, you should do something like:

ShowSplashScreen1()
LoadStuff()
ShowSplashScreen2()
LoadMoreStuff()


BatVink
Dark Flame
20
Years of Service
User Offline
Joined: 15th Feb 2005
Location: England
Posted: 29th Mar 2005 23:50
Nice!

Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 30th Mar 2005 05:35
Thanks dark flame

@ Batvink How many people put loading screens they don't need? just to make the game seem better than it is, I just got bored anyway so to be honest it could be a little waiting sign of something?

CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 30th Mar 2005 06:18 Edited at: 30th Mar 2005 06:28
Indeed, for an actual game which includes lots of media to load or inner works to do, you can do like the following.
This is just a routine from one of my experiments
loadwhat() function is just an ordinary text command but can be improved to include animations etc.
the important is using sync to make the text seem on screen while loading the stuff in the same time.



Just a correction for the above, you should use the function before the gosub to keep the text on screen as far as the loading advances.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Mar 2005 18:12
I don't think any professional game puts unnecessary loading screens. They all serve a purpose. Even when it appears to be just listing the developers, you'll find that behind the scenes it's loading the intro movie or program assets.

CuCumBeRs example is a good one, it's informative to the user.

BatVink
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 30th Mar 2005 21:19
I would say that this is a really stupid way to make a good lookin' loading screen.

You need to sync the screen before the loading text wil appear on your monitor. But, so does the objects that you load that same time.

Here is a good example how i do my loading screens.

first: the INIT function

The black jpeg image is a sprite to be sure that you can't see the objects currently loading and placing.

Now the function that updates the loading screen



The image$ string is a image file that needs to be the same size as the gfx\text_load_images.jpg that has a text on it to show what is currently loading.

use it like this:



good luck with it.


First DifNiX -> now EvaX.

Login to post a reply

Server time is: 2025-05-18 15:36:05
Your offset time is: 2025-05-18 15:36:05