ValueSequence

A value sequence handles the transition from one value to another value based on a value duration.

Constructors

this
this(int a, int b, float valueDuration, TweenMode mode)

Creates a new value sequence.

Members

Functions

hasFinished
bool hasFinished()

Returns true if the animation has finished. This function makes sense when the tween mode is set to bomb.

hasStarted
bool hasStarted()

Returns true if the animation has started. This function makes sense when the tween mode is set to bomb.

now
int now()

Returns the current animation value. The value is between the first and the last animation value.

reset
void reset()

Resets the current animation value.

update
int update(float dt)

Updates the current time of the current value by the given delta time and returns the current animation value.

Variables

a
int a;

The first animation value.

b
int b;

The last animation value.

isYoyoing
bool isYoyoing;

Controls if the delta time given to the update function is reversed.

mode
TweenMode mode;

The mode of the animation.

value
int value;

The current animation value.

valueDuration
float valueDuration;

The duration of a value.

valueTime
float valueTime;

The current time of the current value.

Meta