Information

Author:
    RhysAndrews
Rating:
    9.3 (10 votes)
Type:
    Example
Language:
    GM 6
Reviews:
    None
Submitted:
    November 18, 2006
Dev - DB/form (refering to updated - check code)
Download:
    DOWNLOAD (991)
Dev - make AJAX
Screenshots (0)
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
There were no screenshots provided
Dev - In the submission form, you can now upload a banner image
In-Game Loading Bar
Sometimes, the loading-bar/image that opens when you open your game just isn't enough... Sometimes, there is extensive amounts of processing that isn't covered by that loading bar. This includes huge amounts of slow functions (execute_string, sprite_set_alpha_from_sprite), external loading (adding lots of new sprites, sounds, backgrounds, etc, from external files), and long loop, for, and while statements. While your game is stuck on one frame, not progressing until a long command is completed, your game will look unresponsive, and will be frozen, in a rather ugly fashion.

With the in-game loading example, manual redrawing/refreshing of the screen is made to draw a loading bar (and displaying particles), updating it as more of a slow process is being completed. Believe it or not, all the processing is done in 2 steps... In this example, it includes generating 500 random particles, and bursting each of them. However, the two steps that would usually be freezing the game, is being filled up with refreshing of the screen.


Target platforms:



wow, finally an example on this, i'll check it out
Posted by Cesar November 18, 2006 9:09 - 11.1 years ago
| [#01]

I already did this in AAAI... I'll rate yours impartially if I can.
Posted by Gamer3D November 18, 2006 11:03 - 11.1 years ago
| [#02]

Interesting... but this loading bar seems to be doing thing with a loop... not always the best idea. I'm trying to decide between 8/10 and 9/10... Ok... I'll give it an...
8/10 (due to the unnecessary "doing extra stuff" part (which still takes a while to finish))
Posted by Gamer3D November 18, 2006 11:10 - 11.1 years ago
| [#03]

I have been waiting for an example on doing just this. Thanks Rhys!
Posted by Az November 18, 2006 11:21 - 11.1 years ago
| [#04]

great! seizures!
Posted by Darktech November 18, 2006 14:23 - 11.1 years ago
| [#05]

Gamer3D, The unnecessary loop was simply to display another situation that an in-game loading bar can be used.

Thanks for your Comments
-Rhys
Posted by RhysAndrews November 18, 2006 17:40 - 11.1 years ago
| [#06]

I made something like this on X3D, my 3D graphing calculator. When it draws graphs, it has some progress bars.
Posted by HeroofTime55 November 18, 2006 20:30 - 11.1 years ago
| [#07]

Coolness! I'll probably never use it, but it's neat anyways. 9/10
Posted by takua108 November 19, 2006 13:28 - 11.1 years ago
| [#08]

wow, this is real cool! 8
Posted by Trigger November 19, 2006 13:38 - 11.1 years ago
| [#09]

Really good =)
Posted by poultry December 02, 2006 13:12 - 11.1 years ago
| [#10]

NICE!
This example deserves a 10. Its commented and easily understandable, and makes a game look a lot more professional.
Posted by NoodleNog January 07, 2007 15:03 - 11 years ago
| [#11]

very simple/nice, 10/10, you deserve it.
Posted by DevonX January 08, 2007 19:28 - 10.9 years ago
| [#12]

i have to admit... this is frikkin good... 9/10
Posted by DarkSoulcalibur February 05, 2007 15:22 - 10.9 years ago
| [#13]

lol, I'm impressed. I changed it to 5000 particles and it was lagless. Very nice. 10/10
Posted by Glen March 12, 2008 18:46 - 9.8 years ago
| [#14]

Recent Activity
 
Active Users (0)