Scales a Node object to a zoom factor by modifying it's scale attribute.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
Inherited by ScaleBy.
|
| void | update (float time) override |
| bool | initWithDuration (float duration, float s) |
| | initializes the action with the same scale factor for X and Y
|
| bool | initWithDuration (float duration, float sx, float sy) |
| | initializes the action with and X factor and a Y factor
|
| bool | initWithDuration (float duration, float sx, float sy, float sz) |
| | initializes the action with X Y Z factor
|
| 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 ScaleTo * | create (float duration, float s) |
| | Creates the action with the same scale factor for X and Y.
|
| static ScaleTo * | create (float duration, float sx, float sy) |
| | Creates the action with and X factor and a Y factor.
|
| static ScaleTo * | create (float duration, float sx, float sy, float sz) |
| | Creates the action with X Y Z factor.
|
Scales a Node object to a zoom factor by modifying it's scale attribute.
- Warning
- This action doesn't support "reverse".
-
The physics body contained in Node doesn't support this action.
◆ create() [1/3]
| ScaleTo * create |
( |
float | duration, |
|
|
float | s ) |
|
static |
Creates the action with the same scale factor for X and Y.
- Parameters
-
| duration | Duration time, in seconds. |
| s | Scale factor of x and y. |
- Returns
- An autoreleased ScaleTo object.
◆ create() [2/3]
| ScaleTo * create |
( |
float | duration, |
|
|
float | sx, |
|
|
float | sy ) |
|
static |
Creates the action with and X factor and a Y factor.
- Parameters
-
| duration | Duration time, in seconds. |
| sx | Scale factor of x. |
| sy | Scale factor of y. |
- Returns
- An autoreleased ScaleTo object.
◆ create() [3/3]
| ScaleTo * create |
( |
float | duration, |
|
|
float | sx, |
|
|
float | sy, |
|
|
float | sz ) |
|
static |
Creates the action with X Y Z factor.
- Parameters
-
| duration | Duration time, in seconds. |
| sx | Scale factor of x. |
| sy | Scale factor of y. |
| sz | Scale factor of z. |
- Returns
- An autoreleased ScaleTo object.
◆ update()
| void update |
( |
float | time | ) |
|
|
override |
◆ initWithDuration() [1/3]
| bool initWithDuration |
( |
float | duration, |
|
|
float | s ) |
initializes the action with the same scale factor for X and Y
- Parameters
-
◆ initWithDuration() [2/3]
| bool initWithDuration |
( |
float | duration, |
|
|
float | sx, |
|
|
float | sy ) |
initializes the action with and X factor and a Y factor
- Parameters
-
◆ initWithDuration() [3/3]
| bool initWithDuration |
( |
float | duration, |
|
|
float | sx, |
|
|
float | sy, |
|
|
float | sz ) |
initializes the action with X Y Z factor
- Parameters
-
The documentation for this class was generated from the following file: