CCActionScaleTo Class Reference
Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject |
---|---|
Conforms to | NSCopying |
Declared in | CCActionInterval.h |
Overview
This action scales the target to the specified factor value.
Note: This action is not reversible.
Creating a Scale Action
+ actionWithDuration:scale:
Creates the action with the same scale factor for X and Y.
+ (id)actionWithDuration:(CCTime)duration scale:(float)s
Parameters
duration |
Action duration. |
---|---|
s |
Scale to scale to. |
Return Value
New scale action.
Declared In
CCActionInterval.h
– initWithDuration:scale:
Initializes the action with the same scale factor for X and Y.
- (id)initWithDuration:(CCTime)duration scale:(float)s
Parameters
duration |
Action duration. |
---|---|
s |
Scale to scale to. |
Return Value
New scale action.
Declared In
CCActionInterval.h
+ actionWithDuration:scaleX:scaleY:
Creates the action with individual scale factor for X and Y.
+ (id)actionWithDuration:(CCTime)duration scaleX:(float)sx scaleY:(float)sy
Parameters
duration |
Action duration. |
---|---|
sx |
X scale to scale to. |
sy |
Y scale to scale to. |
Return Value
New scale action.
Declared In
CCActionInterval.h
– initWithDuration:scaleX:scaleY:
Initializes the action with individual scale factor for X and Y.
- (id)initWithDuration:(CCTime)duration scaleX:(float)sx scaleY:(float)sy
Parameters
duration |
Action duration. |
---|---|
sx |
X scale to scale to. |
sy |
Y scale to scale to. |
Return Value
New scale action.
Declared In
CCActionInterval.h