Sprites offset

Official forum for the Chipmunk2D Physics Library.
Post Reply
topher2338
Posts: 1
Joined: Sat Jun 13, 2009 2:39 am
Contact:

Sprites offset

Post 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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Sprites offset

Post 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?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
coolman
Posts: 45
Joined: Fri Feb 27, 2009 7:59 am
Contact:

Re: Sprites offset

Post by coolman »

slembcke wrote:Does Cocos2D enforce that they are centered or something?
No
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests