Page 1 of 1

Sprites offset

Posted: Sat Jun 13, 2009 2:45 am
by topher2338
Is there any way to add a sprite to a body without the sprite being centered on the body? I hope this is a very simple question to answer and not specific to Cocos2d, the framework I am developing on.

Re: Sprites offset

Posted: Sat Jun 13, 2009 6:43 pm
by slembcke
Yeah, just calculate the offset. I'm not sure why that would be difficult exactly. Does Cocos2D enforce that they are centered or something?

Re: Sprites offset

Posted: Sat Jun 13, 2009 6:56 pm
by coolman
slembcke wrote:Does Cocos2D enforce that they are centered or something?
No