-.Paradox.- Posted May 21, 2014 Posted May 21, 2014 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.
.:HyPeX:. Posted May 21, 2014 Posted May 21, 2014 (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 May 21, 2014 by Guest My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
HerculePoirot Posted May 21, 2014 Posted May 21, 2014 You can use:- interpolateBetween The examples are good to understand how it works.
-.Paradox.- Posted May 21, 2014 Author Posted May 21, 2014 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.
tosfera Posted May 21, 2014 Posted May 21, 2014 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. If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]
xXMADEXx Posted May 21, 2014 Posted May 21, 2014 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 ) The Ultimate Lua Tutorial! | MTA PHP SDK
Dealman Posted May 21, 2014 Posted May 21, 2014 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.
.:HyPeX:. Posted May 21, 2014 Posted May 21, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now