Hi,
Should be a simple one for you experts here:
I'm trying to loop two animations in a sequence, run animation one for x cycles or seconds, then animation two once, then start all over again.
here is what I have tried
//mix two anims
void SpineNode::mixAnim(const std::string& animOne, const std::string& animTwo,float ratio)
{
// Configure mixing.
AnimationStateData* stateData = AnimationStateData_create(_mSkeletonData);
AnimationStateData_setMixByName(stateData, animOne.c_str(), animTwo.c_str(), ratio);
AnimationState_addAnimationByName(_mDrawable->state, 0, animOne.c_str(), true, 0);
AnimationState_addAnimationByName(_mDrawable->state, 0, animTwo.c_str(), false, 0);
}
so it runs the sequence once and then stops and doesn't start animation one again.
Whats the way to go about it?
Spine version 3.2.01
SFML, C++, Xcode, spine c runtimes.
Cheers
well, never mind I fixed it with some callbacks.
All good now, thanks