Tiarsoft I update spine-libgdx today. Before if i wanted to know what animation is currently playing i call animState.getAnimation().getName() but now the method getAnimation does not exist. How can i get the current animation? Thanks
Nate You can use getCurrent(trackIndex).getAnimation(). Note getCurrent may return null if no animation has been set for the track, the track has been cleared, or a non-looping animation has finished on the track and the track's queue is empty.
Nate It should be zero if you only ever apply one animation at a time. http://esotericsoftware.com/spine-runtime-terminology/ AnimationState An animation state is a convenience class that holds the state for applying one or more animations to a skeleton. It has the notion of “tracks” which are indexed starting at zero. The animation for each track is applied in sequence each frame, allowing animations to be applied on top of each other. Each track can have animations queued for later playback. Animation state also handles mixing (crossfading) between animations when the current animation changes. Edit: Actually the "Using Spine runtimes" docs should have the information you need, but I realized they are out of date. I've fixed them up so you can read here: http://esotericsoftware.com/spine-using ... ationstate