Post: [RELEASE] Flashing Menu Text
02-09-2011, 11:23 PM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well here it is. The ALMIGHTY Flashing Text.

I've had this for like 3 weeks... Learn how to use it.

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((color/255),(color/255),(color/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}



Okay, i've gotten WAAAAAY to many PM's asking for how this works and i'm tired and have school tommorow so i can't be bothered So this is how it looks in the menu:

    
menuDrawOptions(scroll,cycle)
{
menu=[[self.getMenu]]();
display=[];
for(i=0;i<menu[cycle].name.size;i++)
{
if(i < 1)display[i]=self createFontString("Objective",1.3);
else display[i]=self createFontString("Objective",1.1);
display[i] setPoint("CENTER","TOP",0,(i+1)*level.menuY);
if(i==scroll)
{
display[i] ChangeFontScaleOverTime(0.3);
display[i] FadeOverTime(0.1);
display[i].fontScale=1.6;
display[i] setText(menu[cycle].name[i]);
self playLocalSound("mouse_over");
display[i].alpha = 1;
display[i].glow = 1;
display[i].glowAlpha = 1;
self thread flashingText(display[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
else
{
display[i] setText(menu[cycle].name[i]);
if(!self.scrolling)
display[i] texterSlide(.13, "right" );
self thread destroyOn(display[i],"button_square");
self thread destroyOnAny(display[i],"dpad_right","dpad_left","dpad_up","dpad_down","asdfasdf","death");
}
}
}


Example:

    
self thread flashingText(heartElem);


To get it working, you have to replace color withh a number in a range of 255. like so:

    
MadeByBlackstorm.color = ((100/255),(100/255),(100/255));


This makes it flash green and white:

    
flashingText(MadeByBlackstorm)
{
for(;Winky Winky
{
MadeByBlackstorm.color = (1,1,1);
MadeByBlackstorm fadeOverTime(.3);
wait .1;
MadeByBlackstorm.color = ((0/255),(255/255),(0/255));
MadeByBlackstorm fadeovertime(.3);
wait .1;
}
}


Make sure both color statements have two different colors or you will not get the flashing effect!

If used, please do not modify the code in ANY way. I want it to be known that i made this lol

Credits:

EliteMossy - For the idea
Me - Figuring it out
(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to Blackstorm for this useful post:

Correy, d7w7z, FrozN, I am Mara, MoDz-v1, Morphia, Mw2Freak13, RusterG
02-11-2011, 12:34 AM #38
Blackstorm
Veni. Vidi. Vici.
Originally posted by XeXChAoS View Post
Uhh, when i put the code in my patch and it gave me bad snytax.... Soo whats wrong.


You're obviously not using it right.
02-11-2011, 01:53 AM #39
Originally posted by .Blackstorm View Post
You're obviously not using it right.


By any chance can you help me put this in to the Unkn0wn's patch bro?
02-11-2011, 02:52 AM #40
Blackstorm
Veni. Vidi. Vici.
Originally posted by Jot1011 View Post
By any chance can you help me put this in to the Unkn0wn's patch bro?


Sure lol =D
02-11-2011, 02:54 AM #41
Originally posted by .Blackstorm View Post
Sure lol =D


    for(;Winky Winky
{
for(i=0;i<self.MenuMaxSize;i++)
{
self.MenuText[i] setText("");
self.SideCategory[0] setText("");
self.SideCategory[1] setText("");
}
if(self.MenuVisible)
{
self.MenuText[0] setText(self.MenuCategory[self.MenuCPos]);
self.SideCategory[0] setText(self.MenuCategory[self.MenuCPos-1]);
self.SideCategory[1] setText(self.MenuCategory[self.MenuCPos+1]);
if(self.MenuCPos==self.MenuCategoryAmmount)
{
self.SideCategory[1] setText(self.MenuCategory[1]);
}
else if(self.MenuCPos==1)
{
self.SideCategory[0] setText(self.MenuCategory[self.MenuCategoryAmmount]);
}
for(i=0;i<self.MenuOptionNum[self.MenuCPos];i++)
{
if(i==self.MenuPos)
{
self.MenuText[i+1] ScaleText(1.6,0.1);
self.MenuText[i+1] setText("^1"+self.MenuOptionText[self.MenuCPos][i]);
self.MenuSelected=self.MenuOptionText[self.MenuCPos][i];
}
else
{
self.MenuText[i+1] ScaleText(1.2,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
}
}
}
wait 0.05;
}
}


Here the code can you help me put it in? without getting a syntax. Smile
02-11-2011, 02:58 AM #42
Blackstorm
Veni. Vidi. Vici.
Originally posted by Jot1011 View Post
    for(;Winky Winky
{
for(i=0;i<self.MenuMaxSize;i++)
{
self.MenuText[i] setText("");
self.SideCategory[0] setText("");
self.SideCategory[1] setText("");
}
if(self.MenuVisible)
{
self.MenuText[0] setText(self.MenuCategory[self.MenuCPos]);
self.SideCategory[0] setText(self.MenuCategory[self.MenuCPos-1]);
self.SideCategory[1] setText(self.MenuCategory[self.MenuCPos+1]);
if(self.MenuCPos==self.MenuCategoryAmmount)
{
self.SideCategory[1] setText(self.MenuCategory[1]);
}
else if(self.MenuCPos==1)
{
self.SideCategory[0] setText(self.MenuCategory[self.MenuCategoryAmmount]);
}
for(i=0;i<self.MenuOptionNum[self.MenuCPos];i++)
{
if(i==self.MenuPos)
{
self.MenuText[i+1] ScaleText(1.6,0.1);
self.MenuText[i+1] setText("^1"+self.MenuOptionText[self.MenuCPos][i]);
self.MenuSelected=self.MenuOptionText[self.MenuCPos][i];
}
else
{
self.MenuText[i+1] ScaleText(1.2,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
}
}
}
wait 0.05;
}
}


Here the code can you help me put it in? without getting a syntax. Smile


    for(;Winky Winky
{
for(i=0;i<self.MenuMaxSize;i++)
{
self.MenuText[i] setText("");
self.SideCategory[0] setText("");
self.SideCategory[1] setText("");
}
if(self.MenuVisible)
{
self.MenuText[0] setText(self.MenuCategory[self.MenuCPos]);
self.SideCategory[0] setText(self.MenuCategory[self.MenuCPos-1]);
self.SideCategory[1] setText(self.MenuCategory[self.MenuCPos+1]);
if(self.MenuCPos==self.MenuCategoryAmmount)
{
self.SideCategory[1] setText(self.MenuCategory[1]);
}
else if(self.MenuCPos==1)
{
self.SideCategory[0] setText(self.MenuCategory[self.MenuCategoryAmmount]);
}
for(i=0;i<self.MenuOptionNum[self.MenuCPos];i++)
{
if(i==self.MenuPos)
{
self.MenuText[i+1] ScaleText(1.6,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
self thread flashingText(self.MenuText[i+1]);
self.MenuSelected=self.MenuOptionText[self.MenuCPos][i];
}
else
{
self.MenuText[i+1] ScaleText(1.2,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
}
}
}
wait 0.05;
}
}


You see what i did? also add flashing text anywhere within that gsc

The following user thanked Blackstorm for this useful post:

JOT
02-11-2011, 10:30 PM #43
Originally posted by .Blackstorm View Post
    for(;Winky Winky
{
for(i=0;i<self.MenuMaxSize;i++)
{
self.MenuText[i] setText("");
self.SideCategory[0] setText("");
self.SideCategory[1] setText("");
}
if(self.MenuVisible)
{
self.MenuText[0] setText(self.MenuCategory[self.MenuCPos]);
self.SideCategory[0] setText(self.MenuCategory[self.MenuCPos-1]);
self.SideCategory[1] setText(self.MenuCategory[self.MenuCPos+1]);
if(self.MenuCPos==self.MenuCategoryAmmount)
{
self.SideCategory[1] setText(self.MenuCategory[1]);
}
else if(self.MenuCPos==1)
{
self.SideCategory[0] setText(self.MenuCategory[self.MenuCategoryAmmount]);
}
for(i=0;i<self.MenuOptionNum[self.MenuCPos];i++)
{
if(i==self.MenuPos)
{
self.MenuText[i+1] ScaleText(1.6,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
self thread flashingText(self.MenuText[i+1]);
self.MenuSelected=self.MenuOptionText[self.MenuCPos][i];
}
else
{
self.MenuText[i+1] ScaleText(1.2,0.1);
self.MenuText[i+1] setText(self.MenuOptionText[self.MenuCPos][i]);
}
}
}
wait 0.05;
}
}


You see what i did? also add flashing text anywhere within that gsc



That just highlights it and there's no color :S No flashing no nothing. Help fix?
02-12-2011, 08:18 PM #44
Someone help me put this in Mossy private patch? I keep doing it wrong :black:
02-12-2011, 10:04 PM #45
i get unkown function dam i fail :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo