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-25-2011, 02:43 AM #38
Taylor
Former Black Knight.
Originally posted by Correy View Post
did i quote you or ITheFallenI :confused: ?


You Quoted Me Retard LMAO
11-25-2011, 12:54 PM #39
Woof
...hmm
Originally posted by Tanskin View Post
So? Your the one who's keeping this dumb argument going on. I don't even care about what you have to say. All I said was that two of the versions posted in the OP were flawed, which they were, but you had to make it into something more.

Your exactly the reason why I haven't bothered posting on this forum in over a year.

Yes I quoted you stating that the flaws were irrelevant and that I don't do much in this language, you're the one who carried it on bro.
11-25-2011, 01:45 PM #40
247Yamato
< ^ > < ^ >
Originally posted by Tanskin View Post
Here. This is basically what you were doing.
    trollCopter()
{
variable = 1;
while( 1 )
{
if( variable == 1 ) //obviously it's equal to one since you set it to one above
{
variable = 0;
}
if( variable == 0 ) //it's obviously going to be zero, since you set it to zero above
{
variable = 1; //z0mg, let's repeat this useless process
}
wait .130910;
}
}


Now, can you please explain to me how that's more efficient than this.

    doFlash()
{
self endon( "flashEnd" );
while( 1 )
{
self fadeOverTime( .7 );
self.color = ( randomFloat( 1 ), randomFloat( 1 ), randomFloat( 1 ) );
wait .75;
}
}


Also, your 'fix' still has syntax errors...


That sucks a lot, efficiency?, where?

I like what you do with the color, using floats instead of ints, thats pretty correct.
11-25-2011, 03:51 PM #41
Correy
I'm the Original
Originally posted by xYARDSALEx View Post
You Quoted Me Retard LMAO


oh lmao, didnt mean too.
'retared' :bat:
11-25-2011, 05:47 PM #42
Taylor
Former Black Knight.
Originally posted by Correy View Post
oh lmao, didnt mean too.
'retared' :bat:


STFU You Herp A Derp, LoL :derp:
11-25-2011, 06:23 PM #43
.Andy
[move]I do it for teh Nonz :carling:[/move]
Looks awesome bro =D
11-25-2011, 07:41 PM #44
Originally posted by 247Yamato View Post
That sucks a lot, efficiency?, where?

I like what you do with the color, using floats instead of ints, thats pretty correct.

lulz, I never implied that mine was efficient, I simply stated mine is more efficient than his (from what I can see).

The following 2 users groaned at Tanskin for this awful post:

247Yamato, Taylor
11-26-2011, 02:32 AM #45
Correy
I'm the Original
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;
}
}


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)


smaller than most, minipulates time and also element.
    DoFlash(elem, time)
{
for(;Winky Winky
{
elem FadeOverTime(time);
elem.color = (randomFloat(1),randomFloat(1),randomFloat(1));
wait (time);
}
}


    
self DoFlash( <time between flash>, <declared shader> );
11-26-2011, 02:55 AM #46
Taylor
Former Black Knight.
Originally posted by Correy View Post
smaller than most, minipulates time and also element.
    DoFlash(elem, time)
{
for(;Winky Winky
{
elem FadeOverTime(time);
elem.color = (randomFloat(1),randomFloat(1),randomFloat(1));
wait (time);
}
}


    
self DoFlash( <time between flash>, <declared shader> );


You Make Me Feet Stupid Getthefuckout Lmao

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo