Change Sprite Anchorpoint without moving it?

Posted by Oscar Gomez on Stack Overflow See other posts from Stack Overflow or by Oscar Gomez
Published on 2010-01-18T21:17:17Z Indexed on 2012/11/04 5:02 UTC
Read the original article Hit count: 481

I am trying to change my Sprite anchor point so that I can rotate over a 0.0f,0.0f anchorpoint. At first my object is rotation at the default anchor point (0.5f,0.5f). However later on I need it to rotate over a 0.0,0.0 AnchorPoint.

The problem is I cannot change the anchor point and change the position accordingly, so it stays on the same position, without the object appearing to quickly move and reposition to its original point.

Is there a way I can set the anchor point and the position of my Sprite at once, without it moving at all?. Thank you.

-Oscar

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c