Example usage for Java com.badlogic.gdx.spriter SpriterAnimator fields, constructors, methods, implement or subclass
The text is from its open source code.
SpriterAnimator(SpriterEntity spriterEntity) Initialize a new SpriterAnimator with given SpriterEntity . |
void | addAnimationListener(SpriterAnimationListener listener) Add a SpriterAnimationListener to this SpriterAnimator . |
float | getAlpha() Get the alpha value of this SpriterAnimator . |
Iterable | getAnimations() Get all SpriterAnimation s available for current SpriterEntity . |
float | getPivotX() Get the X pivot of this SpriterAnimator . |
float | getPivotY() Get the Y pivot of this SpriterAnimator . |
float | getSpeed() Get the animation speed (factor applied to delta time). |
void | play(String animationName) Play given SpriterAnimation given its name. |
void | play(SpriterAnimation animation) Play given SpriterAnimation . |
void | setAlpha(float alpha) Set the alpha value of this SpriterAnimator . |
void | setPivotX(float pivotX) Set the X pivot of this SpriterAnimator . |
void | setPivotY(float pivotY) Set the Y pivot of this SpriterAnimator . |
void | setSpeed(float speed) Set the animation speed (factor applied to delta time). |
void | setTime(float time) Set the time (Spriter time) of the SpriterAnimation currently playing. |
void | update(float deltaTime) Update current SpriterAnimation with given delta time. |