Hi Nate - as a novice Spinerator, I may be missing a fundamental here.
Ok, in AS3 - I load my json,atlas, and png. Then set up my SkeletonAnimation, SkeletonData, and AnimationStateData. After all this is done, I set the state:
MySkeletonAnimation.state.setAnimationByName(0, "Animation1", true);
In that animation is both the blink and the whip.
What I've been doing (correct me if I am wrong!) is when I change animations, I set up a temp TrackEntry var and set the
state, timeScale, eventThreshold, etc. :
var tmpTE:TrackEntry;
tmpTE = MySkeletonAnimation.state.setAnimationByName(0, "Animation2", false);
tmpTE.timeScale = 1.5;
tmpTE.eventThreshold = 1;
tmpTE = MySkeletonAnimation.state.addAnimationByName(0, "Animation1", true, 1);
tmpTE.timeScale = 1;
tmpTE.eventThreshold = .75;
Are you saying I should make an animation named "Blink" and another named "Whip". The "Blink" will be a looping 2 second animation of the whole skeleton, but only the 'eye' bone/slot animates. Then in the "Whip" it will be 10 seconds long, of the whole skeleton but only the 'whipping' action bones/slots are animated. And then play them at the same time. Is this correct? Something like this:
var tmpTE:TrackEntry;
tmpTE = MySkeletonAnimation.state.setAnimationByName(0, "Blink", false);
tmpTE.timeScale = 1;
tmpTE = MySkeletonAnimation.state.setAnimationByName(1, "Whip", false);
tmpTE.timeScale = .5;
I feel like I must have totally skipped something in the tutorials vids! :-)