Jump to content

Question


Recommended Posts

Posted

Hello guys, Is it possible to create an animated window or an animated dxText like example from bottom of the screen to the center of the screen.

If yes then tell me the functions that i could use to make it, thanks.

-Sent from my iPhone.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted (edited)

What do you mean? create a window and make it appear from the bottom?

mainly for any animation you'd need:

interpolateBetweeen

setTimer

onClientRender

I myself found a clever way to make a dashboard with moving images, if you want the code PM me.

It was made kind in this way http://activeden.net/item/xml-horizonta ... iew/127714

Edited by Guest

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted

Though InterPolate between is for 3D positions (x,y,z) not the gui window(x,y,width,height)

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

You can just use the onClientRender and some math to move your GUI. Won't be all to hard if you ask me, just make sure you add a check in there for the FPS of a player, so it doesn't move to fast for others.

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted

You can just use a variable

local sx, sy = guiGetScreenSize ( ) 
local y = sy + 20 
  
addEventHandler ( "onClientRender", root, function ( ) 
  
    if ( y > ( sy / 2 ) then 
        y = y - 2 
    elseif ( y < ( sy / 2 ) ) then   
        y = ( sy / 2 ) 
    end 
     
    dxDrawText ( "Text", 0, y, sx, 20 ) 
     
end ) 

Posted
Though InterPolate between is for 3D positions (x,y,z) not the gui window(x,y,width,height)

You can use interpolateBetween with pretty much anything. I've used it with for some of my interfaces. So it's certainly doable.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Ineeded, interpolateBetween is your best friend at doing animations once you've mastered it. It is an interpolate between any values, if you only want one, just place 0 in the remaining places. (150,0,0,200,0,0)

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...