Example usage for Java com.badlogic.gdx.graphics.g2d Animation fields, constructors, methods, implement or subclass
The text is from its open source code.
Animation(float frameDuration, Array extends TextureRegion> keyFrames) Constructor, storing the frame duration and key frames. | |
Animation(float frameDuration, TextureRegion... keyFrames) Constructor, storing the frame duration and key frames. | |
Animation(float frameDuration, Array extends TextureRegion> keyFrames, PlayMode playMode) Constructor, storing the frame duration, key frames and play type. |
float | getAnimationDuration() |
float | getFrameDuration() |
TextureRegion | getKeyFrame(float stateTime, boolean looping) Returns a TextureRegion based on the so called state time. |
TextureRegion | getKeyFrame(float stateTime) Returns a TextureRegion based on the so called state time. |
TextureRegion[] | getKeyFrames() Returns the keyFrames[] array where all the TextureRegions of the animation are stored. |
boolean | isAnimationFinished(float stateTime) Whether the animation would be finished if played without looping (PlayMode#NORMAL), given the state time. |
void | setFrameDuration(float frameDuration) Sets duration a frame will be displayed. |
void | setPlayMode(PlayMode playMode) Sets the animation play mode. |