Post: [Tutorial]- How to use Hud function's
02-02-2011, 05:32 PM #1
Woof
...hmm
(adsbygoogle = window.adsbygoogle || []).push({});
How to use Hud function's !

-I've had alot of people asking me, "How do you move/fade text or shader's ?" well now im going to show you Winky Winky

lets start of with making a newclienthudelem.
    display = NewClientHudElem(self);
display SetShader( "black", 15, 15 );
display.alpha = 0.6;


now then..

Fade over a period of time

how to layout:
    display.alpha = [COLOR="Red"]?[/COLOR];[COLOR="SeaGreen"] // old point[/COLOR]
display FadeOverTime( [COLOR="Red"]<time>[/COLOR] ); [COLOR="SeaGreen"]// Time taken[/COLOR]
display.alpha = [COLOR="red"]?[/COLOR];[COLOR="SeaGreen"] // New point[/COLOR]

Example:
    display.alpha = 0;
display FadeOverTime( 2 );
display.alpha = 0.6;

This would fade from 0 to 0.6 in 2 seconds.

Move over a period of time

how to layout:
    display setPoint( "[COLOR="Red"]OLD POINT[/COLOR]");[COLOR="SeaGreen"] // old point[/COLOR]
display MoveOverTime( [COLOR="Red"]<time>[/COLOR] ); [COLOR="SeaGreen"]// Time taken[/COLOR]
display setPoint( "[COLOR="red"]NEW POINT[/COLOR]");[COLOR="SeaGreen"] // New point[/COLOR]

Example:
    display setPoint( "TOP", "TOP",1, 418 );
display MoveOverTime( 2 );
display setPoint( "TOP", "TOP", 1, 1 );


this would move the text/shader from bottom to top of your screen in 2 seconds.

Scale over a period of time

how to layout:
    ScaleOverTime( [COLOR="Red"]<time>, <width>, <height> [/COLOR]);

Example:
    ScaleOverTime( 2, 30, 30 );


Update - click You must login or register to view this content. to easily get points. posted by DT <3

hope i helped Winky Winky bye/meow
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to Woof for this useful post:

-Nickk96-, IAMSTEN, weebobe
02-02-2011, 05:35 PM #2
Thanks Big Bad Man lol, Will Come In Usefull Smile
02-02-2011, 05:45 PM #3
Default Avatar
Gizmo
Guest
Cheers man Winky Winky
Going to add this to a shader Happy
    
display = NewClientHudElem(self);
display SetShader( "black", 15, 15 );
display.alpha = 0.6
display setPoint( "OLD POINT"); // old point
display MoveOverTime( <time> ); // Time tooken
display setPoint( "NEW POINT"); // New point


Also, It should be time taken Happy
02-03-2011, 08:08 PM #4
baremo
Pokemon Trainer
Very nice post.

    display FadeOverTime( 2 )[COLOR="Red"];[/COLOR]


Add this Winky Winky

The following user thanked baremo for this useful post:

Woof
02-03-2011, 08:43 PM #5
Woof
...hmm
Originally posted by baremo View Post
Very nice post.

    display FadeOverTime( 2 )[COLOR="Red"];[/COLOR]


Add this Winky Winky

Lol thanks, kinda rushed it Happy
Thanked.
02-03-2011, 08:45 PM #6
This can scare people Happy
02-03-2011, 08:48 PM #7
baremo
Pokemon Trainer
But i have a question, look this please
    Hrt11(){

heartElem = self createFontString( "hudbig", 0.7 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT");
heartElem setText("^7Baremo V6.2");
while(1)
{
heartElem setPoint( "TOPRIGHT", "TOPRIGHT");
heartElem MoveOverTime( 1 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT", -200, 0);
heartElem MoveOverTime( 1 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT");

}
}

The text move left to right ( i love )
But its not repeating ( sorry for my english ) there is no repetition.

Can say me why ?
02-03-2011, 11:53 PM #8
Mabez96
Do a barrel roll!
Quick Question How WouldI cahnage to colour of the HUD element to like blue or somethin like that?:confused:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo