Brad96 Posted August 22, 2013 Share Posted August 22, 2013 local screenWidth, screenHeight = guiGetScreenSize() local x = 0 addEventHandler("onClientRender", root, function () x = x + 0.01 local a , b = 50 , 100 local x, y = interpolateBetween ( a, b, 0, a+10, b+20, 0, x, "Linear") dxDrawImage( screenWidth - x, screenHeight - y , 63 , 62 ,"test.png",0.0,0.0,0.0,tocolor(255,255,255,200),false) end) Good, I found this forum .. hopefully not bother I would like to explain to me what each line and the need to put in the script to achieve the image makes its effect or movement .. thanks: D is for do it my script Link to comment
manve1 Posted August 22, 2013 Share Posted August 22, 2013 Use MTA's wiki, it's all explained in there ( not all at once, but it tells what main functions do ). Link to comment
JasperNL=D Posted August 24, 2013 Share Posted August 24, 2013 When you render it like this, it depends on your FPS how fast the image will move over the screen. I'll recommend using getTickCount() to define the difference in the x-value 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