ItsMods

Full Version: Flashy Text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
what is randomfloat 1?
Good Job Yamato Big Grin :OMA:
(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
ah ok ty for information yamato
Again a helpful thread, thanks Yamato!
OMA
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?