public final class Anim extends Object
Modifier and Type | Method and Description |
---|---|
static Animation |
createAnimation(String name,
int firstFrame,
int lastFrame,
double speed,
boolean reverse,
boolean repeat)
Create an animation, which can be played by an
Animator . |
static Animator |
createAnimator()
Create an animator, which will be able to play
Animation . |
public static Animation createAnimation(String name, int firstFrame, int lastFrame, double speed, boolean reverse, boolean repeat)
Animator
.name
- The animation name.firstFrame
- The first frame (included) index to play (superior or equal to Animation.MINIMUM_FRAME
).lastFrame
- The last frame (included) index to play (superior or equal to firstFrame).speed
- The animation playing speed (superior or equal to 0.0).reverse
- true
to reverse animation play (play it from first to last, and last to first).repeat
- The repeat state (true
will play in loop, false
will play once only).LionEngineException
- If invalid animation.Copyright © 2016 Byron 3D Games Studio. All rights reserved.