Post: Animating Your Menu's!
07-30-2011, 06:03 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); First of all you need these codes, put them anywhere in your GSC
    
elemMoveX(time,Input)
{
self moveOverTime(time);
self.x=Input;
}

    
elemMoveY(time,Input)
{
self moveOverTime(time);
self.y=Input;
}


right, now onto making your menu move.
you need to code your shader from where you want it to start, here's mine from my new menu.
    
self.Shader=self CreateShader("LEFT","LEFT",10,-400,150,700,"white",0.90,0,(0,0,0));


this will start off the screen, like i wanted it too..
now, you need to code where you would like it too move to, using X axis and Y axis.. like this.
    
self.Shader elemMoveY(1,-175);

    
self.Shader elemMoveX(1,10);


you need to add the name of the shader to the coding, do that by using self.SHADERNAME
the X axis is position from the right of the screen, Y is from the top or bottom.. also, you need to put that shader move code onto the menu opening button.

for the 1, at the beginning of the bracket thats the time of how long it takes to get the and then the number after the , is the position on the screen.
note: don't be ripping this from me, i know cause i've never seen a menu which moves like this!

yeah, btw before you ask.. i've made a new menu which you should see Very soon.
(adsbygoogle = window.adsbygoogle || []).push({});

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

Glittery Penis Skittle, iReset Nigga,
07-31-2011, 12:32 AM #11
Originally posted by iReset View Post
so could we do this to like menu text??


You could do it to any text you like mate Smile

The following user thanked x_DaftVader_x for this useful post:

iReset Nigga
07-31-2011, 04:37 AM #12
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
No, you use it for the text string so if you had

xText = createfontstring(a,b); etc... you then just use
xText flashThread();

Here's the full function from Hud_Util.gsc



flashThread()
{
self endon ( "death" );

if ( !self.hidden )
self.alpha = 1;

while(1)
{
if ( self.frac >= self.flashFrac )
{
if ( !self.hidden )
{
self fadeOverTime(0.3);
self.alpha = .2;
wait(0.35);
self fadeOverTime(0.3);
self.alpha = 1;
}
wait(0.7);
}
else
{
if ( !self.hidden && self.alpha != 1 )
self.alpha = 1;

wait ( 0.05 );
}
}
}


It would be better to thread it if you have more script after the function, 'cause the flashThread is a loop right?

I haven't seen the function, but I remember in dconnorz menu I tried doing display flashThread(); and the whole function didn't finish because I didn't thread it. :p
07-31-2011, 09:21 AM #13
Originally posted by Blackstorm View Post
It would be better to thread it if you have more script after the function, 'cause the flashThread is a loop right?

I haven't seen the function, but I remember in dconnorz menu I tried doing display flashThread(); and the whole function didn't finish because I didn't thread it. :p

I think I used to run it twice and then destroy, I can't really remember. It's got an "if" statement in the function but it's for progress bars I think. You were always better with the text stuff than me anyway Winky Winky

The following user thanked x_DaftVader_x for this useful post:

Blackstorm
07-31-2011, 12:08 PM #14
correy r u going to comeout with another menu ??:bat:
07-31-2011, 01:08 PM #15
Correy
I'm the Original
Originally posted by donsta3000 View Post
correy r u going to comeout with another menu ??:bat:


yeah, i only need to add the mods to it :carling:
07-31-2011, 06:52 PM #16
Originally posted by Correy View Post
yeah, i only need to add the mods to it :carling:


yey!!! lol i always look forward 2 ur posts :-D

The following user thanked donsta3000 for this useful post:

Correy
08-01-2011, 07:24 AM #17
Aoehz
Banned
Originally posted by Correy View Post
i have many ways Winky Winky


Okay then, how'd you make it? Every time I put a COD4 patch in ffViewer, an error. Help?
08-04-2011, 11:10 PM #18
Correy
I'm the Original
Originally posted by RelicModz View Post
Okay then, how'd you make it? Every time I put a COD4 patch in ffViewer, an error. Help?


download BuC-ShoTz new .ff, that does the job.
08-05-2011, 05:52 AM #19
PryZeex
Do a barrel roll!
Sick! Can't wait to see it in action.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo