Package com.esotericsoftware.spine.AnimationState

Examples of com.esotericsoftware.spine.AnimationState.AnimationStateListener


    stateData.setMix("jump", "run", 0.2f);
    stateData.setMix("jump", "jump", 0);

    state = new AnimationState(stateData); // Holds the animation state for a skeleton (current animation, time, etc).
    state.setTimeScale(0.3f); // Slow all animations down to 30% speed.
    state.addListener(new AnimationStateListener() {
      public void event (int trackIndex, Event event) {
        System.out.println(trackIndex + " event: " + state.getCurrent(trackIndex) + ", " + event.getData().getName() + ", "
          + event.getInt());
      }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.spine.AnimationState.AnimationStateListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.