Post: [Release]Flashy Text
11-05-2011, 07:29 PM #1
247Yamato
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Hello

A noobie release of something that I have seen many times these last 2 days on this section and not properly made:

Example of use

    
self.text = self createfontstring("default",1.7,self);
self.text setpoint("","",0,0);
self.text settext("This is Flashy");
self MakeFlashyText(self.text);


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


For some guys who asked, whats the difference beetween randomfloat and randomint:

Int = 1,2,3,4,5,6,45,3656.....
Float = 1.543533,0.453563,689.314253,3.543662......
(adsbygoogle = window.adsbygoogle || []).push({});
11-05-2011, 07:33 PM #2
Taylor
Former Black Knight.
Originally posted by 247Yamato View Post
Hello

A noobie release of something that I have seen many times these last 2 days on this section and not properly made:

Example of use

    
self.text = self createfontstring("default",1.7,self);
self.text setpoint("","",0,0);
self.text settext("This is Flashy");
self MakeFlashyText(self.text);


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


For some guys who asked, whats the difference beetween randomfloat and randomint:

Int = 1,2,3,4,5,6,45,3656.....
Float = 1.543533,0.453563,689.314253,3.543662......


Already Posted..... JUst Differently
11-05-2011, 07:37 PM #3
Correy
I'm the Original
Originally posted by 247Yamato View Post
Hello

A noobie release of something that I have seen many times these last 2 days on this section and not properly made:

Example of use

    
self.text = self createfontstring("default",1.7,self);
self.text setpoint("","",0,0);
self.text settext("This is Flashy");
self MakeFlashyText(self.text);


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


For some guys who asked, whats the difference beetween randomfloat and randomint:

Int = 1,2,3,4,5,6,45,3656.....
Float = 1.543533,0.453563,689.314253,3.543662......


ah, so thats what they are.. i used doubles in C#Smile

The following user thanked Correy for this useful post:

247Yamato
11-06-2011, 12:32 AM #4
Woof
...hmm
Originally posted by 247Yamato View Post
Hello

A noobie release of something that I have seen many times these last 2 days on this section and not properly made:

Example of use

    
self.text = self createfontstring("default",1.7,self);
self.text setpoint("","",0,0);
self.text settext("This is Flashy");
self MakeFlashyText(self.text);


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


For some guys who asked, whats the difference beetween randomfloat and randomint:

Int = 1,2,3,4,5,6,45,3656.....
Float = 1.543533,0.453563,689.314253,3.543662......


It would have been easier to say int is a number without decimals and a float is a number with decimals.
Int rounds up, float does not. Smile

Edit: ( I would have used this instead. )
elem.color = ( randomInt( 17 * 15 ), randomInt( 17 * 15 ), randomInt( 17 * 15 ) );
11-06-2011, 02:07 AM #5
i still like useing Int tho Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo