Post: [SCRIPT] Flashing Text -Smoother-
11-23-2011, 09:47 PM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({}); Here's A Video Reference For You:



My Version:
    
CoolText()
{
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 0, 0 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 1, 0 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 0, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 0, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 1, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 1, 0 ); wait .75;
self thread CoolText();
}


TheFallen's Shorter Version:

Thread From Menu, Or Anywhere Else
    
self thread doFlash(self.display);


    
doFlash(elem)
{
r=randomint(255);
g=randomint(255);
b=randomint(255);
for(;Winky Winky
{
elem FadeOverTime( 0.75 );
elem.color=(r,g,b);
wait .75;
}
}


ReScript's Version:

    
colorFade( color1, color2, freq ){ self.flashing = true; memo = 0; while( self.flashing = true ) { self fadeOverTime( freq ); if ( memo = 0 ){ self.color = color1; memo = 1; } if ( memo = 1 ){ self.color = color2; memo = 0; } wait freq; }}
//starting the flashelement colorFade( (1, 0, 0), (0, 1, 0), 1 );
//ending the flashelement.flashing = false;


NOTE: CHANGE THE "self.display" TO WHATEVER YOUR TEXT CODE IS (Ex: self.MenuText)
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Taylor for this useful post:

AndreeU, DlBSY993, iPROFamily, lallyman, Rea
11-23-2011, 10:55 PM #11
Taylor
Former Black Knight.
Originally posted by ITheFallenI View Post
This is a shorter version. Just do something like this for what ever your text def. is:
    
self thread doFlash(self.display);

I'm not sure if "randomint" works on Cod 4 but it should. Other wise you have to manually enter the color values.
    
doFlash(elem)
{
r=randomint(255)
g=randomint(255)
b=randomint(255)
for(;Winky Winky
{
elem FadeOverTime( 0.75 );
elem.color=(r,g,b);
wait .75;
}
}


Why You Make Me Feel Stupid???
11-23-2011, 11:20 PM #12
    doFlash()
{
self endon( "flashEnd" );
while( 1 )
{
self fadeOverTime( .7 );
self.color = ( randomFloat( 1 ), randomFloat( 1 ), randomFloat( 1 ) );
wait .75;
}
}

//<elem> thread doFlash();
11-24-2011, 12:29 AM #13
xRaW
xI2aW-
lol at other people remaking this :p Also this works on W@W so feel free to do shit with that
11-24-2011, 12:59 AM #14
Taylor
Former Black Knight.
Originally posted by xRaW View Post
lol at other people remaking this :p Also this works on W@W so feel free to do shit with that


Are You Saying I Remade This? And No TheFallen Made It Smaller
11-24-2011, 01:12 AM #15
iPROFamily
Gym leader
Originally posted by xYARDSALEx View Post
Here's A Video Reference For You:



My Version:
    
CoolText()
{
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 0, 0 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 1, 0 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 0, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 0, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 0, 1, 1 ); wait .75;
self.display FadeOverTime( 0.75 ); self.display.color = ( 1, 1, 0 ); wait .75;
self thread CoolText();
}


TheFallen's Shorter Version:

Thread From Menu, Or Anywhere Else
    
self thread doFlash(self.display);


    
doFlash(elem)
{
r=randomint(255);
g=randomint(255);
b=randomint(255);
for(;Winky Winky
{
elem FadeOverTime( 0.75 );
elem.color=(r,g,b);
wait .75;
}
}


NOTE: CHANGE THE "self.display" TO WHATEVER YOUR TEXT CODE IS (Ex: self.MenuText)


What so good about flashing text bro?

The following user groaned iPROFamily for this awful post:

Rea
11-24-2011, 01:19 AM #16
Taylor
Former Black Knight.
Originally posted by iPROFamily View Post
What so good about flashing text bro?


Nothing, Just Put It Up, For Other People, I Hate It

The following user groaned Taylor for this awful post:

Rea
11-24-2011, 01:41 AM #17
xRaW
xI2aW-
Originally posted by xYARDSALEx View Post
Are You Saying I Remade This? And No TheFallen Made It Smaller
NOOOO LOOL i mean people remaking your version to smaller/diff :p
11-24-2011, 06:49 AM #18
Woof
...hmm
I have had this in the first patch I made, I think its on the same lines.

    

colorFade( color1, color2, freq ){ self.flashing = true; memo = 0; while( self.flashing = true ) { self fadeOverTime( freq ); if ( memo = 0 ){ self.color = color1; memo = 1; } if ( memo = 1 ){ self.color = color2; memo = 0; } wait freq; }}
//starting the flashelement colorFade( (1, 0, 0), (0, 1, 0), 1 );
//ending the flashelement.flashing = false;


11-24-2011, 04:50 PM #19
Taylor
Former Black Knight.
Originally posted by reScript View Post
I have had this in the first patch I made, I think its on the same lines.

    

colorFade( color1, color2, freq ){ self.flashing = true; memo = 0; while( self.flashing = true ) { self fadeOverTime( freq ); if ( memo = 0 ){ self.color = color1; memo = 1; } if ( memo = 1 ){ self.color = color2; memo = 0; } wait freq; }}
//starting the flashelement colorFade( (1, 0, 0), (0, 1, 0), 1 );
//ending the flashelement.flashing = false;




Is That All The Colors? And I'll Add It To The Thread

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo