Post: Do you want to have a loading bar for your menu?
11-15-2011, 10:34 PM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Hello i got a loading bar for your menu/challenges anything like that. I dont know how to self thread it for challenges but i will tell you how to do it for your menu. ok look in your gsc that has your menu you can put the selfthread under the button that you use to open your menu. it will say Buttons usually.

+Rep if i helped thanks.:bro:
    self thread Bar();

This is the code that you put under the button that opens your menu.^^


This below put it anywhere in the gsc that your menu is in.
Bar()
{
wduration = 3.0;
NSB = createPrimaryProgressBar( -40 );
NSBText = createPrimaryProgressBarText( -40 );
NSBText setText( "Put text here!" );
NSB updateBar( 0, 1 / wduration );
NSB.color = (0, 0, 0);
NSB.bar.color = (0, 1, 0);
for ( waitedTime = 0;waitedTime < wduration && isAlive( self ) && !level.gameEnded;
waitedTime += 0.05 )wait ( 0.05 );
NSB destroyElem();
NSBText destroyElem();
}


Color codes.
///////////////// SET LOADBAR COLOR ///////////////////////
// PINK LOADBAR
//self.scrollbar.color = (1,0.41,0.71);
// RED LOADLBAR
//self.scrollbar.color = ( 1, 0, 0 );
// BLUE LOADLBAR
//self.scrollbar.color = ( 0, 0, 1 );
// CYAN LOADBAR
//self.scrollbar.color = ( 0, 1, 1 );
// GREEN LOADBAR
//self.scrollbar.color = ( 0, 1, 0 );
// ORANGE LOADBAR
//self.scrollbar.color = ( 1, 0.5, 0 );
// PURPLE LOADBAR
//self.scrollbar.color = ( 1, 0, 1 );
// YELLOW LOADBAR
//self.scrollbar.color = ( 1, 1, 0 );
// BLACK LOADBAR
self.scrollbar.color = ( 1, 0, 1 );
//WHITE LOADBAR
//////////////////////////////////////////////////////////////

(Example) NSB.color = (0, 0, 0);NSB.bar.color = (0, 1, 0);
The three numbers are the clors and you can copy the three codes above.just pick a color and copy the three numbers and put it were the three numbers are on NSB.color and NSB.bar.color.


Credits.
Karoolus (color codes)
Yardsale (Loading bar)Cool Man (aka Tustin)
(adsbygoogle = window.adsbygoogle || []).push({});

The following user groaned Jacob-And-Britt for this awful post:

INSAN3LY_D34TH
11-17-2011, 09:18 AM #20
xxshredgnarxx
Treasure hunter
Originally posted by xYARDSALEx View Post
Yeah Its A Bad Habit To Break, For Me If I Don't Type This Way I Tend To Spell Stuff Wrong And I Think It Looks Wrong In My Head I Don't Know, Ive Tried Breaking It But I Can't I Really Can't


I used to have that same exact problem.lol I still do it with some stuff, like if I were to write Call of Duty I would put Call Of Duty. Or

The following user thanked xxshredgnarxx for this useful post:

Taylor

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo