Post: Does anyone know how to set?
10-21-2014, 11:50 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Okay, i like to call my Menu Title like revolution Mod Menu by Enstone, that means, i want that changing colors, but if i do it, it isn't so smooth :(

for example :

titleflash()
{
self.menu.title.glowcolor = ( 0, 0, 1);
wait ( for example 1.5; )
self.menu.title.glowcolor = (0, 1, 0);
wait 1.5;
}

It changes to fast, i want it smoother and a little bit slower, can anyone help me?
10-21-2014, 03:24 PM #2
Originally posted by x0ptic0ns100 View Post
Okay, i like to call my Menu Title like revolution Mod Menu by Enstone, that means, i want that changing colors, but if i do it, it isn't so smooth :(

for example :

titleflash()
{
self.menu.title.glowcolor = ( 0, 0, 1);
wait ( for example 1.5; )
self.menu.title.glowcolor = (0, 1, 0);
wait 1.5;
}

It changes to fast, i want it smoother and a little bit slower, can anyone help me?


I would think that to slow it down you would just need to set the wait time up higher than 1.5, but I don't know so don't take my word for it :p

Edit: Next time please use
    Your code[/code*] (without the star) Makes it look neater Enzo
Last edited by Mantus ; 10-21-2014 at 04:00 PM.
10-21-2014, 03:50 PM #3
dtx12
Do a barrel roll!
Originally posted by x0ptic0ns100 View Post
Okay, i like to call my Menu Title like revolution Mod Menu by Enstone, that means, i want that changing colors, but if i do it, it isn't so smooth :(

for example :

titleflash()
{
self.menu.title.glowcolor = ( 0, 0, 1);
wait ( for example 1.5; )
self.menu.title.glowcolor = (0, 1, 0);
wait 1.5;
}

It changes to fast, i want it smoother and a little bit slower, can anyone help me?


Of course it won't be smooth, since you're just changing color from 0 0 1 to 0 1 0, without any transition between.
10-21-2014, 03:59 PM #4
Originally posted by dtx12 View Post
Of course it won't be smooth, since you're just changing color from 0 0 1 to 0 1 0, without any transition between.


If you Explain me how i do it right, it would be awesome!
10-21-2014, 04:50 PM #5
dtx12
Do a barrel roll!
Originally posted by x0ptic0ns100 View Post
If you Explain me how i do it right, it would be awesome!


Ok, the simple example:
    
smoothTransition()
{
x = 1;
y = 0;
display = self maps\mp\gametypes\_hud_util::createfontstring("default",1.5);
display setText("Color");
display setPoint("TOPCENTER","TOPCENTER",0,0);
while(x > 0)
{
display.color = (0, y, x);
y+=.05;
x-=.05;
wait .01;
}
}
10-21-2014, 04:53 PM #6
Originally posted by dtx12 View Post
Ok, the simple example:
    
smoothTransition()
{
x = 1;
y = 0;
display = self maps\mp\gametypes\_hud_util::createfontstring("default",1.5);
display setText("Color");
display setPoint("TOPCENTER","TOPCENTER",0,0);
while(x > 0)
{
display.color = (0, y, x);
y+=.05;
x-=.05;
wait .01;
}
}


Ok thanx Smile

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo