sprite animation in chipmunk
Posted: Mon Apr 22, 2013 7:23 am
Hello,
I have maid sprite by joining different parts of it in chipmunk,now i want to put some animation like walk,jump on it,how it is possible? Chipmunk don't support ccmoveto function
I have made dollcharacter & dollsprite two different files in dollsprite.h i have define nsobject which contain head,torso,arm,leg all the parts, in dollsprite.m i have taken batchnode & in dollcharacter file i have define body size,shape & join them.
Now i want to put some colliders in path but i don't know how to detect collision with this different body parts?
i want to put effects like if character collide with its leg then fall in different manner and when collide it's torso with colliders than fall in different manner
please tell me how to do this task?
cpbodyapplyforce option also used for applying force but where i have to put it to make my sprite walk
i want to put linear force to make sprite walk
please help
if u can post the code than it will be better for me
thank you
I have maid sprite by joining different parts of it in chipmunk,now i want to put some animation like walk,jump on it,how it is possible? Chipmunk don't support ccmoveto function
I have made dollcharacter & dollsprite two different files in dollsprite.h i have define nsobject which contain head,torso,arm,leg all the parts, in dollsprite.m i have taken batchnode & in dollcharacter file i have define body size,shape & join them.
Now i want to put some colliders in path but i don't know how to detect collision with this different body parts?
i want to put effects like if character collide with its leg then fall in different manner and when collide it's torso with colliders than fall in different manner
please tell me how to do this task?
cpbodyapplyforce option also used for applying force but where i have to put it to make my sprite walk
i want to put linear force to make sprite walk
please help
if u can post the code than it will be better for me
thank you