⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
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. | |
| Public Member Functions inherited from ActionInterval | |
| 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. | |
| 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. |