Jump to content

About DxDrawImage


SkatCh

Recommended Posts

Posted (edited)

hi guys please i have a question , which function i need to use to make dxDrawImage movable .

Edited by Guest
Posted
  
local sx,sy = guiGetScreenSize();  start = getTickCount() 
  
addEventHandler("onClientRender",root, 
function  ( ) 
  local now = getTickCount() 
    local elapsedTime = now - start 
    local endTime = start + 6000 
    local duration = endTime - start 
  progress = elapsedTime / duration 
  
    local i1,i2,_ = interpolateBetween ( 0, sy*(-500/768), 0, 0, sy*(130/768), 0, progress, "OutBounce") 
  
dxDrawImage ( (sx*(800/1024)) -((sx/2)-(i1/2)), ((sy/2)-(i2/2))-i2/2, sx*(400/1024),sy*(400/768), "test.png",0,0,0, tocolor(255, 255, 255, 255), false)  
end 
) 
  

Posted

Shh.. How is that supposed to help him :P

Its basically what he wanted, but way to complicated for someone who doesn't know anything about that.

Posted
Shh.. How is that supposed to help him :P

Its basically what he wanted, but way to complicated for someone who doesn't know anything about that.

Nobody is stopping him from learning. It's all about testing, the more he tests, the more he gets the hang of it. :mrgreen:

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