hello currently i have 6 data:
first_animation.json,
first_animation.atlas,
first_animation.png
second_animation.json,
second_animation.atlas,
second_animation.png
the problem is when i code like this:
if (skeletonName == "first_animation")
{
skeleton.getRootBone().x = 170;
skeleton.getRootBone().y = 300;
skeleton.updateWorldTransform();
state.setAnimationByName("1st", false);
state.addAnimationByName("2nd", true);
state.addAnimationByName("3rd", false, 9);
load('second_animation');
}
they end up load the 1st and suddenly load('second_animation') so they just play 1st for about 0.5 sec then skip 2nd and the 3rd
i'm not put the load function etc, because i've just copy them just like in the runtime..
thank you very much