GTX Posted August 4, 2015 Posted August 4, 2015 You can't. Apply them a value from interpolateBetween
MAB Posted August 4, 2015 Author Posted August 4, 2015 mm.. couldn't understand things in that example + it is a marker... do u have time for example ?
GTX Posted August 4, 2015 Posted August 4, 2015 local x, y = guiGetScreenSize() local startTime = getTickCount() function renderSplash() local progress = (getTickCount()-startTime)/3000 local animationTime = interpolateBetween(0, 0, 0, 1, 0, 0, progress, "InOutQuad") dxDrawText("Hello world!", 0, 0, x-600+animationTime*300, y-120, tocolor(255, 255, 255, animationTime*255), 4, "default", "center", "center", false, false, false, true, true) end addEventHandler("onClientRender", root, renderSplash) This is an example from my script. Although I could use getEasingValue here since it goes from 0 to 1.
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