ItsMods
[Release] Flashy Text - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Release] Flashy Text (/Thread-Release-Flashy-Text.html)



Flashy Text - Yamato - 11-05-2011

Hi, OMA

I released this code on another website, so, Ill put it here too, Troll

Use:

Code:
self.text = self createfontstring("default",1.7,self); self.text setpoint("","",0,0); self.text settext("This is Flashy but OMA is cooler"); self MakeFlashyText(self.text);

Code:

Code:
MakeFlashyText(elem) { self endon("death"); self endon("disconnect"); for(;;) { elem.color = (randomfloat(1),randomfloat(1),randomfloat(1)); wait 0.05; } }

OMA


RE: Flashy Text - krijnrien - 11-06-2011

what is randomfloat 1?


RE: Flashy Text - aosma8 - 11-06-2011

Good Job Yamato Big Grin :OMA:


RE: Flashy Text - Yamato - 11-06-2011

(11-06-2011, 09:37)krijnrien Wrote: what is randomfloat 1?

A random value from 0 to 1 which could be a number like:

0.453521,0.878474,0.123456....

@aosma8 OMA for you


RE: Flashy Text - krijnrien - 11-06-2011

ah ok ty for information yamato


RE: Flashy Text - _Smile_Man_ - 11-06-2011

Again a helpful thread, thanks Yamato!
OMA


RE: Flashy Text - GscGunner - 12-30-2011

soo...
plz tell me if this is correct.

elem.color = (randomfloat(2),randomfloat(2),randomfloat(2));
this will take a random number/ color between 0 and 2?