Post: ScaleFontOverTime Script
02-08-2012, 08:40 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); this scales the font size very smooth, as good as the mw2 function.

ino this is a very small script and not worth a thread but ive seen alot of people useing doHearts()

here is the script:
    scaleFontOverTime(size,time)
{
scaleSize = ((size-self.fontScale)/(time*20));
for(k = 0; k < (20*time); k++)
{
self.fontScale += scaleSize;
wait .05;
}
}



here is an example on how to use:

    text()
{
text = createText("default",1.4,"","",0,70,1,1,"IELIITEMODZX");
for(;Winky Winky
{
text thread scaleFontOverTime(2.4,.5);
wait .5;
text thread scaleFontOverTime(1.4,.5);
wait .5;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to IELIITEMODZX for this useful post:

1337HaXaLoT, Taylor
02-08-2012, 08:49 PM #2
Taylor
Former Black Knight.
Originally posted by IELIITEMODZX View Post
this scales the font size very smooth, as good as the mw2 function.

ino this is a very small script and not worth a thread but ive seen alot of people useing doHearts()

here is the script:
    scaleFontOverTime(size,time)
{
scaleSize = ((size-self.fontScale)/(time*20));
for(k = 0; k < (20*time); k++)
{
self.fontScale += scaleSize;
wait .05;
}
}



here is an example on how to use:

    text()
{
text = createText("default",1.4,"","",0,70,1,1,"IELIITEMODZX");
for(;Winky Winky
{
text thread scaleFontOverTime(2.4,.5);
wait .5;
text thread scaleFontOverTime(1.4,.5);
wait .5;
}
}


get idea from my doHeart???
02-08-2012, 08:51 PM #3
Originally posted by xYARDSALEx View Post
get idea from my doHeart???
yep ive seen lots of them and they look bad so i made this to make them look nicer Happy
02-08-2012, 09:18 PM #4
Originally posted by IELIITEMODZX View Post
this scales the font size very smooth, as good as the mw2 function.

ino this is a very small script and not worth a thread but ive seen alot of people useing doHearts()

here is the script:
    scaleFontOverTime(size,time)
{
scaleSize = ((size-self.fontScale)/(time*20));
for(k = 0; k < (20*time); k++)
{
self.fontScale += scaleSize;
wait .05;
}
}



here is an example on how to use:

    text()
{
text = createText("default",1.4,"","",0,70,1,1,"IELIITEMODZX");
for(;Winky Winky
{
text thread scaleFontOverTime(2.4,.5);
wait .5;
text thread scaleFontOverTime(1.4,.5);
wait .5;
}
}


nothing new lol xD its also in mikeeeys menu base
but good job elite
02-08-2012, 09:21 PM #5
Originally posted by sniipezZ View Post
nothing new lol xD its also in mikeeeys menu base
but good job elite
this is smoother then the one in mikeeeyys menu base and the script is smaller Happy
02-08-2012, 09:30 PM #6
Originally posted by IELIITEMODZX View Post
this scales the font size very smooth, as good as the mw2 function.

ino this is a very small script and not worth a thread but ive seen alot of people useing doHearts()

here is the script:
    scaleFontOverTime(size,time)
{
scaleSize = ((size-self.fontScale)/(time*20));
for(k = 0; k < (20*time); k++)
{
self.fontScale += scaleSize;
wait .05;
}
}



here is an example on how to use:

    text()
{
text = createText("default",1.4,"","",0,70,1,1,"IELIITEMODZX");
for(;Winky Winky
{
text thread scaleFontOverTime(2.4,.5);
wait .5;
text thread scaleFontOverTime(1.4,.5);
wait .5;
}
}


fontPulse(player) Cool Man (aka Tustin)
02-08-2012, 09:34 PM #7
Originally posted by x. View Post
fontPulse(player) Cool Man (aka Tustin)
thats not to make the text scale in and out lolz, i think it make's the text enter like the old notify msg

The following user thanked IELIITEMODZX for this useful post:

x_DaftVader_x
02-08-2012, 09:42 PM #8
Originally posted by IELIITEMODZX View Post
thats not to make the text scale in and out lolz, i think it make's the text enter like the old notify msg


Oh Ok, I don't mess around with text.. I stand corrected :cry:

This is the function though, it's from _hud.gsc

    fontPulseInit()
{
self.baseFontScale = self.fontScale;
self.maxFontScale = self.fontScale * 2;
self.inFrames = 3;
self.outFrames = 5;
}


fontPulse(player)
{
self notify ( "fontPulse" );
self endon ( "fontPulse" );
player endon("disconnect");
player endon("joined_team");
player endon("joined_spectators");

scaleRange = self.maxFontScale - self.baseFontScale;

while ( self.fontScale < self.maxFontScale )
{
self.fontScale = min( self.maxFontScale, self.fontScale + (scaleRange / self.inFrames) );
wait 0.05;
}

while ( self.fontScale > self.baseFontScale )
{
self.fontScale = max( self.baseFontScale, self.fontScale - (scaleRange / self.outFrames) );
wait 0.05;
}
}

The following user thanked x_DaftVader_x for this useful post:

IELIITEMODZX
02-08-2012, 09:44 PM #9
Originally posted by x. View Post
Oh Ok, I don't mess around with text.. I stand corrected :cry:

This is the function though, it's from _hud.gsc

    fontPulseInit()
{
self.baseFontScale = self.fontScale;
self.maxFontScale = self.fontScale * 2;
self.inFrames = 3;
self.outFrames = 5;
}


fontPulse(player)
{
self notify ( "fontPulse" );
self endon ( "fontPulse" );
player endon("disconnect");
player endon("joined_team");
player endon("joined_spectators");

scaleRange = self.maxFontScale - self.baseFontScale;

while ( self.fontScale < self.maxFontScale )
{
self.fontScale = min( self.maxFontScale, self.fontScale + (scaleRange / self.inFrames) );
wait 0.05;
}

while ( self.fontScale > self.baseFontScale )
{
self.fontScale = max( self.baseFontScale, self.fontScale - (scaleRange / self.outFrames) );
wait 0.05;
}
}
o i think you was right lolz sorry :( that dose scale in and out but atleast mine can be used for other things to Happy
02-08-2012, 09:48 PM #10
Originally posted by IELIITEMODZX View Post
o i think you was right lolz sorry :( that dose scale in and out but atleast mine can be used for other things to Happy


Don't forget Flashthread() as well. I used them both my MW2 patch ages ago..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo