Scales a Node object to a zoom factor by modifying it's scale attribute.
More...
Inherits ActionInterval.
Inherited by ScaleBy.
|
static ScaleTo * | create (float duration, float s) |
| Creates the action with the same scale factor for X and Y. More...
|
|
static ScaleTo * | create (float duration, float sx, float sy) |
| Creates the action with and X factor and a Y factor. More...
|
|
static ScaleTo * | create (float duration, float sx, float sy, float sz) |
| Creates the action with X Y Z factor. More...
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
static const int | INVALID_TAG = -1 |
| Default tag used for all the actions.
|
|
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]
static 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]
static 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]
static 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.
◆ clone()
Returns a clone of action.
- Returns
- A clone action.
Reimplemented from ActionInterval.
Reimplemented in ScaleBy.
◆ reverse()
Returns a new action that performs the exact reverse of the action.
- Returns
- A new action that performs the exact reverse of the action. @js NA
Reimplemented from ActionInterval.
Reimplemented in ScaleBy.
◆ startWithTarget()
virtual void startWithTarget |
( |
Node * |
target | ) |
|
|
overridevirtual |
Called before the action start.
It will also set the target.
- Parameters
-
Reimplemented from ActionInterval.
Reimplemented in ScaleBy.
◆ update()
virtual void update |
( |
float |
time | ) |
|
|
overridevirtual |
- Parameters
-
Reimplemented from Action.
◆ initWithDuration() [1/3]
bool initWithDuration |
( |
float |
duration, |
|
|
float |
s |
|
) |
| |
|
protected |
initializes the action with the same scale factor for X and Y
- Parameters
-
◆ initWithDuration() [2/3]
bool initWithDuration |
( |
float |
duration, |
|
|
float |
sx, |
|
|
float |
sy |
|
) |
| |
|
protected |
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 |
|
) |
| |
|
protected |
initializes the action with X Y Z factor
- Parameters
-
The documentation for this class was generated from the following file: