Search the Community
Showing results for tags 'interpolatebetween'.
-
Quero que quando apertar uma tecla e a barra estiver um uma posição específica ele execute outra função gostaria de saber como fazer para saber quando a barra estiver na area do alvo Essa é a forma que estou fazendo a barra : local screenW, screenH = guiGetScreenSize() local painel = false function hacking() barra = interpolateBetween(0, 0, 0, 0.1695, 0, 0, (getTickCount()-tick)/3000, "Linear") dxDrawRectangle(screenW * 0.4156, screenH * 0.7139, screenW * 0.1695, screenH * 0.0444, tocolor(0, 0, 0, 180), false) dxDrawRectangle(screenW * 0.4742, screenH * 0.7139, screenW * 0.0109, screenH * 0.0444, tocolor(255, 255, 255, 180), false) -- Alvo dxDrawRectangle(screenW * 0.4156, screenH * 0.7139, screenW * barra, screenH * 0.0444, tocolor(0, 255, 0, 255), false) end function starting () tick = getTickCount() if painel == false then addEventHandler ( "onClientRender", root, hacking ) painel = true else painel = false removeEventHandler ( "onClientRender", root, hacking ) end end addCommandHandler("iniciar",starting)
-
I have an understanding in the topic the only thing that I dont get is the fprogress please can explain me with detail why they use getTickCount() and add subtract and devide to get that progress I just dont get it, thank you...!!! please not mean comments not everybody is an einstein at everything and dont say look at the wiki the wiki dont explain with details.
-
i need someone to explain me how does interpolateBetween work and how can it be applied and on what please and thank you. i want to make a script that shows credits like in the movies where credits go from the bottom to the top crossing the screen. like that or can someone tell me if its possible PLEASE AND THANK YOU image
- 4 replies
-
- interpolatebetween
- animation
-
(and 1 more)
Tagged with: