Hi everyone,
I'm using the Java runtime for Spine and I'm trying to work out how I can use the current animation in an AnimationState object in a logic statement.
I printed out AnimationState.toString() and it returned the animation in text ("walk", "run", "attack") so I figured I could use if(AnimationState.toString() == "attack")... but the code inside the if statement doesn't run at all.
I also tried AnimationState.getCurrent(0).getAnimation().getName() and that didn't work either (this printed out same as AnimationState.toString).
If anyone has some pointers, it would be much appreciated 🙂
Cheers,
Mike.