Uses of Class
com.codingame.gameengine.module.entities.SpriteAnimation
-
Uses of SpriteAnimation in com.codingame.gameengine.module.entities
Modifier and TypeMethodDescriptionGraphicEntityModule.createSpriteAnimation()
Creates a new Sprite animation, its graphical counterpart will be created on the frame currently being computed.SpriteAnimation.pause()
Calls setPlaying(false);SpriteAnimation.play()
Calls setPlaying(true);SpriteAnimation.reset()
Reset the progress of the animationSpriteAnimation.setDuration
(int duration) Sets the duration of the animation in milliseconds.Sets the sequence of images for this animation.SpriteAnimation.setLoop
(boolean loop) Sets whether the animation loops.SpriteAnimation.setPlaying
(boolean playing) Plays or pause the animation.Modifier and TypeMethodDescriptionEntity.setMask
(SpriteAnimation animation) Sets a givenSpriteAnimation
as thisEntity
'sMask
.