hmm, it seems if I do
AnimationState.SetAnimation(0, "walk", false, 0);
AnimationState.AddAnimation(0, "walk", true, 1);
Where walk is the goblin.spine
walk animation (from goblins spine provided with spine C:\Program Files (x86)\Spine\examples\goblins
)
The second animation plays immediately after the first one. (walk is 30 frames long).
from my animationstate viewer:
Loading Image
AnimationState.SetAnimation(0, "walk", false, 0);
AnimationState.AddAnimation(0, "walk", true, 2);
Loading Image
This will wait one second after the first walk animation completes, then play the second animation one second after
12 Dec 2016, 17:23
I made gifs to illustrate this:
AnimationState.SetAnimation(0, "walk", false, 0);
AnimationState.AddAnimation(0, "walk", true, 0);
Loading Image
AnimationState.SetAnimation(0, "walk", false, 0);
AnimationState.AddAnimation(0, "walk", true, 1);
Loading Image
AnimationState.SetAnimation(0, "walk", false, 0);
AnimationState.AddAnimation(0, "walk", true, 2);
Loading Image