An interval action is an action that takes place within a certain period of time. More...
Inherits FiniteTimeAction.
Inherited by AccelAmplitude, AccelDeccelAmplitude, ActionCamera, ActionEase, ActionFloat, ActionTween, Animate, Animate3D, BezierBy, Blink, CardinalSplineTo, DeccelAmplitude, DelayTime, FadeTo, GridAction, JumpBy, MoveBy, ProgressFromTo, ProgressTo, Repeat, RepeatForever, ReverseTime, RotateBy, RotateTo, ScaleTo, Sequence, SkewTo, Spawn, TargetedAction, TintBy, and TintTo.
Public Member Functions | |
float | getElapsed (void) |
How many seconds had elapsed since the actions started to run. More... | |
var | getElapsed () |
How many seconds had elapsed since the actions started to run. More... | |
local | getElapsed () |
How many seconds had elapsed since the actions started to run. More... | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. More... | |
float | getAmplitudeRate (void) |
Gets the ampliture rate, extension in GridAction. More... | |
virtual bool | isDone (void) const override |
override Action . | |
local | isDone () |
override Action . | |
virtual ActionInterval * | reverse () const override |
override Action . | |
virtual ActionInterval * | clone () const override |
override Action . | |
var | clone () |
override Action . | |
local | clone () |
override Action . | |
Protected Member Functions | |
bool | initWithDuration (float d) |
initializes the action with the duration. More... | |
var | initWithDuration ( var d) |
initializes the action with the duration. More... | |
local | initWithDuration ( local d) |
initializes the action with the duration. More... | |
An interval action is an action that takes place within a certain period of time.
It has an start time, and a finish time. The finish time is the parameter duration plus the start time.
These ActionInterval actions have some interesting properties, like:
For example, you can simulate a Ping Pong effect running the action normally and then running it again in Reverse mode.
Example:
|
inline |
How many seconds had elapsed since the actions started to run.
The seconds had elapsed since the ations started to run.
|
inline |
How many seconds had elapsed since the actions started to run.
The seconds had elapsed since the ations started to run.
|
inline |
How many seconds had elapsed since the actions started to run.
The seconds had elapsed since the ations started to run.
void setAmplitudeRate | ( | float | amp | ) |
Sets the amplitude rate, extension in GridAction.
The ampliture rate.
var setAmplitudeRate | ( | var | amp | ) |
Sets the amplitude rate, extension in GridAction.
The ampliture rate.
local setAmplitudeRate | ( | local | amp | ) |
Sets the amplitude rate, extension in GridAction.
The ampliture rate.
float getAmplitudeRate | ( | void | ) |
Gets the ampliture rate, extension in GridAction.
The ampliture rate.
var getAmplitudeRate | ( | ) |
Gets the ampliture rate, extension in GridAction.
The ampliture rate.
local getAmplitudeRate | ( | ) |
Gets the ampliture rate, extension in GridAction.
The ampliture rate.
|
protected |
initializes the action with the duration.
The duration Return true if initialized successfully, otherwise return false.
|
protected |
initializes the action with the duration.
The duration Return true if initialized successfully, otherwise return false.
|
protected |
initializes the action with the duration.
The duration Return true if initialized successfully, otherwise return false.