Jump to content

Image Rotation


Recommended Posts

Posted

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 :D

Posted
-- 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) 

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