hello guys, I have a noob question on mixing animation,
I have three animations A,B,C. I want them go in loop A->B->C->A(loop)
I have them setMix(A,B) ,setMix(B,C), setMix(C,A)
then when C animation completed:
switch (type) {
case ANIMATION_COMPLETE:
if(strcmp(animationName,"C")==0){
skeletonNode->clearTrack();
skeletonNode->setAnimation(0, "A", false);
skeletonNode->addAnimation(0, "B", false,2.0f);
skeletonNode->addAnimation(0, "C", false,2.0f);
}
break;
...
}
I clear the track and set the animation sequence again,
but doing so, I will lose the mixing from C to A,
how should I do it properly if I want to keep the C to A mixing?
using:
-official cocos2dx 2.2
-latest spine runtime
-xcode ios simulator
many thanks!