MisterQuestions Posted October 29, 2014 Share Posted October 29, 2014 Hey can somebody help me, how to make this image has a continuous rotation e.e My code: local sX, sY = guiGetScreenSize() local rot = 1 rot = rot+1 function ResetAngle() if ( rot == 360 ) then rot = 0 end end function DrawTheSymbol() dxDrawImage (655, 25, 113, 122, "timer.png",rot,0,0) end addEventHandler("onClientRender", getRootElement(), DrawTheSymbol) Link to comment
lLinux Posted October 29, 2014 Share Posted October 29, 2014 Try this: local sX, sY = guiGetScreenSize() local rot = 0 function DrawTheSymbol() if ( rot >= 360 ) then rot = 0 end rot = rot + 1 dxDrawImage (655, 25, 113, 122, "timer.png",rot,0,0) end addEventHandler("onClientRender", getRootElement(), DrawTheSymbol) Link to comment
-Blaze- Posted October 29, 2014 Share Posted October 29, 2014 you can also use this resource, https://community.multitheftauto.com/index.php?p=resources&s=details&id=7858 Link to comment
toxicsmoke11 Posted October 29, 2014 Share Posted October 29, 2014 most easiest and effective way would be this dxDrawImage (655, 25, 113, 122, "timer.png",rot,0,0, getTickCount/20 % 360) 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