Java com.badlogic.gdx.spriter SpriterAnimator fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.spriter SpriterAnimator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.spriter SpriterAnimator.

The text is from its open source code.

Constructor

SpriterAnimator(SpriterEntity spriterEntity)
Initialize a new SpriterAnimator with given SpriterEntity .

Method

voidaddAnimationListener(SpriterAnimationListener listener)
Add a SpriterAnimationListener to this SpriterAnimator .
floatgetAlpha()
Get the alpha value of this SpriterAnimator .
IterablegetAnimations()
Get all SpriterAnimation s available for current SpriterEntity .
floatgetPivotX()
Get the X pivot of this SpriterAnimator .
floatgetPivotY()
Get the Y pivot of this SpriterAnimator .
floatgetSpeed()
Get the animation speed (factor applied to delta time).
voidplay(String animationName)
Play given SpriterAnimation given its name.
voidplay(SpriterAnimation animation)
Play given SpriterAnimation .
voidsetAlpha(float alpha)
Set the alpha value of this SpriterAnimator .
voidsetPivotX(float pivotX)
Set the X pivot of this SpriterAnimator .
voidsetPivotY(float pivotY)
Set the Y pivot of this SpriterAnimator .
voidsetSpeed(float speed)
Set the animation speed (factor applied to delta time).
voidsetTime(float time)
Set the time (Spriter time) of the SpriterAnimation currently playing.
voidupdate(float deltaTime)
Update current SpriterAnimation with given delta time.