Hello,
I am trying to mixing two animations, the animation mixing should happen when I click a button. It is working if I click the button after 1 minute otherwise it will take time for mixing two animations.
This code I am using
skeletonSquidNode->setAnimation(2, "final_correct", false);
skeletonSquidNode->addAnimation(2, "final_correct_loop", true);
skeletonSquidNode->setMix("final_correct_loop", "thinking", 0.3f);
and on button click
skeletonSquidNode->addAnimation(2, "thinking", true);
Please some one let me know how I will fixe this problem.
Thanks