cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCScaleTo Class Reference

#import <CCActionInterval.h>

+ Inheritance diagram for CCScaleTo:
+ Collaboration diagram for CCScaleTo:

List of all members.

Public Member Functions

(id) - initWithDuration:scale:
(id) - initWithDuration:scaleX:scaleY:

Static Public Member Functions

(id) + actionWithDuration:scale:
(id) + actionWithDuration:scaleX:scaleY:

Protected Attributes

float _scaleX
float _scaleY
float _startScaleX
float _startScaleY
float _endScaleX
float _endScaleY
float _deltaX
float _deltaY

Detailed Description

Scales a CCNode object to a zoom factor by modifying its scale attribute.

Warning:
This action doesn't support "reverse"

Member Function Documentation

+ (id) actionWithDuration: (ccTime duration
scale: (float)  s 

creates the action with the same scale factor for X and Y

+ (id) actionWithDuration: (ccTime duration
scaleX: (float)  sx
scaleY: (float)  sy 

creates the action with and X factor and a Y factor

- (id) initWithDuration: (ccTime duration
scale: (float)  s 

initializes the action with the same scale factor for X and Y

- (id) initWithDuration: (ccTime duration
scaleX: (float)  sx
scaleY: (float)  sy 

initializes the action with and X factor and a Y factor


The documentation for this class was generated from the following file: