Jump to content


Photo

Rotate sprite anti-clockwise


  • Please log in to reply
1 reply to this topic

#1 raphael1

raphael1

    GMC Member

  • New Member
  • 20 posts
  • Version:GM7

Posted 26 February 2012 - 08:59 PM

I have box sprite which is 400px by 400 px, how do get it to rotate anti-clockwise using a timer, being struggling with it for hours.

any help appreciated :blush:
  • 0

#2 TheouAegis

TheouAegis

    GMC Member

  • GMC Member
  • 10238 posts
  • Version:GM8

Posted 26 February 2012 - 09:20 PM

counterclockwise

If you're using image_angle, just change it by 1.

image_angle+=1

That rotates the image 1 degree counterclockwise. If you want to rotate it clockwise, use -1

image_angle-=1

You need GM Pro for that, though.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users