iiv03 Posted October 21, 2018 Share Posted October 21, 2018 i want script animation slide up for dx Link to comment
iiv03 Posted October 21, 2018 Author Share Posted October 21, 2018 9 hours ago, Dimos7 said: interpolateBetween its gui i want dx bro. Link to comment
Gordon_G Posted October 21, 2018 Share Posted October 21, 2018 interpolate isn't gui or dx, it's a function that you can use for everything Link to comment
Z4Zy Posted October 22, 2018 Share Posted October 22, 2018 For a example, you can try below code. Client Side :- local screenW,screenH = guiGetScreenSize() local progress = 0 addEventHandler("onClientRender",root, function () progress = progress + 0.99 local moveto1, moveto2 = interpolateBetween (screenW * 0.1475, screenH * 0.4648, 0, screenW * 0.5049, screenH * 0.4648, 0, progress, "SineCurve") dxDrawText(" This is a moving text ", moveto1, moveto2, screenW * 0.5264, screenH * 0.5417, tocolor(35, 204, 219, 255), 2.5, "default-bold", "center", "center", false, false, true, true, true) end ) Link to comment
N3xT Posted October 24, 2018 Share Posted October 24, 2018 Or, you could use this useful function since it much easier. https://wiki.multitheftauto.com/wiki/Animate 1 Link to comment
iiv03 Posted October 24, 2018 Author Share Posted October 24, 2018 On 22/10/2018 at 17:40, DeadthStrock said: For a example, you can try below code. Client Side :- local screenW,screenH = guiGetScreenSize() local progress = 0 addEventHandler("onClientRender",root, function () progress = progress + 0.99 local moveto1, moveto2 = interpolateBetween (screenW * 0.1475, screenH * 0.4648, 0, screenW * 0.5049, screenH * 0.4648, 0, progress, "SineCurve") dxDrawText(" This is a moving text ", moveto1, moveto2, screenW * 0.5264, screenH * 0.5417, tocolor(35, 204, 219, 255), 2.5, "default-bold", "center", "center", false, false, true, true, true) end ) Thanks Man 1 Link to comment
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