cocos2d: syncing CCAnimation frames with Box2d Shape manipulations

Posted by Hezi Cohen on Game Development See other posts from Game Development or by Hezi Cohen
Published on 2010-09-05T11:46:01Z Indexed on 2011/03/11 16:19 UTC
Read the original article Hit count: 404

Filed under:
|
|
|

hi everybody!

my cocos2d game currently has a ccsprite attached to a box2d body. during the game i apply different CCAnimations on my sprite, i would like to perform certain manipulations to the box2d body according to the frame currently displayed by the sprite (change rotation of the body, etc.) my current idea on implementing this is to subclass ccsprite and change the setDisplayFrame implementation but i thought somebody here probably did the same and already has a solution, so any suggestions on how to implement this?

thanks!

© Game Development or respective owner

Related posts about physics

Related posts about animation