cocos2d-mac  1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
CCScaleTo Interface Reference

#include <CCActionInterval.h>

Inheritance diagram for CCScaleTo:
Collaboration diagram for CCScaleTo:

List of all members.

Public Member Functions

id initWithDuration:scale: (ccTime duration,[scale] float s)
id initWithDuration:scaleX:scaleY: (ccTime duration,[scaleX] float sx,[scaleY] float sy)

Static Public Member Functions

id actionWithDuration:scale: (ccTime duration,[scale] float s)
id actionWithDuration:scaleX:scaleY: (ccTime duration,[scaleX] float sx,[scaleY] float sy)

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 it's scale attribute.

Warning:
This action doesn't support "reverse"

Member Function Documentation

id CCScaleTo::actionWithDuration:scale: ( ccTime  duration,
[scale] float  s 
) [static, virtual]

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

id CCScaleTo::actionWithDuration:scaleX:scaleY: ( ccTime  duration,
[scaleX] float  sx,
[scaleY] float  sy 
) [static, virtual]

creates the action with and X factor and a Y factor

id CCScaleTo::initWithDuration:scale: ( ccTime  duration,
[scale] float  s 
) [virtual]

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

id CCScaleTo::initWithDuration:scaleX:scaleY: ( ccTime  duration,
[scaleX] float  sx,
[scaleY] float  sy 
) [virtual]

initializes the action with and X factor and a Y factor


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