Axmol Engine 2.4.0-258ceca
|
Progress to percentage. More...
#include <ActionProgressTimer.h>
Inherits ActionInterval.
Public Member Functions | |
bool | initWithDuration (float duration, float percent) |
Initializes with a duration and destination percentage. | |
![]() | |
float | getElapsed () |
How many seconds had elapsed since the actions started to run. | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. | |
float | getAmplitudeRate () |
Gets the amplitude rate, extension in GridAction. | |
virtual void | step (float dt) override |
bool | initWithDuration (float d) |
initializes the action | |
Static Public Member Functions | |
static ProgressTo * | create (float duration, float percent) |
Create and initializes with a duration and a destination percentage. | |
Progress to percentage.
This action show the target node from current percentage to the specified percentage. You should specify the destination percentage when creating the action.
|
static |
Create and initializes with a duration and a destination percentage.
duration | Specify the duration of the ProgressTo action. It's a value in seconds. |
percent | Specify the destination percentage. |
bool initWithDuration | ( | float | duration, |
float | percent ) |
Initializes with a duration and destination percentage.
duration | Specify the duration of the ProgressTo action. It's a value in seconds. |
percent | Specify the destination percentage. |