Uses of Class
com.codingame.gameengine.module.entities.SpriteAnimation
Packages that use SpriteAnimation
-
Uses of SpriteAnimation in com.codingame.gameengine.module.entities
Methods in com.codingame.gameengine.module.entities that return SpriteAnimationModifier 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.Methods in com.codingame.gameengine.module.entities with parameters of type SpriteAnimationModifier and TypeMethodDescriptionEntity.setMask
(SpriteAnimation animation) Sets a givenSpriteAnimation
as thisEntity
'sMask
.