Jump to content

help with DX functions


MAB

Recommended Posts

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.

Link to comment

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...