Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Setting an Axis point for a Sprite to Rotate around?  (Read 2327 times)

0 Members and 1 Guest are viewing this topic.

Austech

  • Newbie
  • *
  • Posts: 23
    • View Profile
Setting an Axis point for a Sprite to Rotate around?
« on: December 03, 2009, 09:03:35 pm »
Is there a way to set a point for a sprite to rotate around? For example, if I rotated a sprite, it would rotate around it's X and Y position. But is there a way to get a sprite to rotate around a larger area? Sorry if you don't know what I'm talking about, it's kind of hard for me to explain.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Setting an Axis point for a Sprite to Rotate around?
« Reply #1 on: December 03, 2009, 09:51:38 pm »
It rotates around its center.
SetCenter(float, float) may be what you're looking for.