@Connect Posted May 17, 2014 Share Posted May 17, 2014 hi guys i was wondering how do I add an image to rotate: the image code here: dxDrawImage (0:44 x *, x * 0.3, 100, 100, "images / timer.png", 0,0,0, tocolor (0,255,0)) Thank you for your attention Link to comment
xXMADEXx Posted May 17, 2014 Share Posted May 17, 2014 -- top of your script local rot = 0 -- in the render rot = rot + 1 if ( rot >= 360 ) then rot = 0 end dxDrawImage (0:44 x *, x * 0.3, 100, 100, "images/timer.png", 0,0,0, tocolor (0,255,0), rot) Link to comment
.:HyPeX:. Posted May 17, 2014 Share Posted May 17, 2014 You both guys are doing a typo. dxDrawImage ([b]0:44 x *[/b], x * 0.3, 100, 100, "images/timer.png", 0,0,0, tocolor (0,255,0), rot) 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