(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)