Package | Description |
---|---|
com.codingame.gameengine.module.entities |
Modifier and Type | Method and Description |
---|---|
SpriteAnimation |
GraphicEntityModule.createSpriteAnimation()
Creates a new Sprite animation, its graphical counterpart will be created on the frame currently being computed.
|
SpriteAnimation |
SpriteAnimation.setDuration(int duration)
Sets the duration of the animation in milliseconds.
|
SpriteAnimation |
SpriteAnimation.setImages(java.lang.String... images)
Sets the sequence of images for this animation.
|
SpriteAnimation |
SpriteAnimation.setLoop(boolean loop)
Sets whether the animation loops.
|
SpriteAnimation |
SpriteAnimation.setStarted(boolean started)
Begins or restarts the animation, it will always begin at the first image.
|