SkatCh Posted August 16, 2014 Share Posted August 16, 2014 (edited) hi guys please i have a question , which function i need to use to make dxDrawImage movable . Edited August 16, 2014 by Guest Link to comment
Saml1er Posted August 16, 2014 Share Posted August 16, 2014 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 ) Link to comment
Bonsai Posted August 16, 2014 Share Posted August 16, 2014 Shh.. How is that supposed to help him Its basically what he wanted, but way to complicated for someone who doesn't know anything about that. Link to comment
SkatCh Posted August 16, 2014 Author Share Posted August 16, 2014 thx brother topic can be locked. problem resolved Link to comment
Saml1er Posted August 16, 2014 Share Posted August 16, 2014 Shh.. How is that supposed to help him 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. 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