iphone - Animate a Stick Figure with Cocos2d, images vs. drawing? -
i saw question on cocos2d forum, , see answer, i'm assuming more answered here:
i wondering best method go animating stick figure running, walking, etc. need have wide , flexible range of motion, prefer animate multiple lines rather create premade images , flip through them. use rotation or use trigonometry figure coordinates angle of moving extremities? advice, direction or code snippets appreciated!
you set own anchor points each sprite animate rotation- way rotate arm end of arm using rotate instead of doing lot of complicated math. setting anchor point allows translate sprite along point instead of center. anchorpoint tutorial.
however, think might easier create lot of images of stick figure doing of actions. think n game , character has lot of animations.
Comments
Post a Comment