CCActionSkewTo Class Reference

Inherits from CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInterval.h

Overview

This action skews the target to the specified angles. Skewing changes the rectangular shape of the node to that of a parallelogram.

Creating a Skew Action

+ actionWithDuration:skewX:skewY:

Creates the action.

+ (id)actionWithDuration:(CCTime)t skewX:(float)sx skewY:(float)sy

Parameters

t

Action duration.

sx

X skew value in degrees, between -90 and 90.

sy

Y skew value in degrees, between -90 and 90.

Return Value

New skew action.

Declared In

CCActionInterval.h

– initWithDuration:skewX:skewY:

Initializes the action.

- (id)initWithDuration:(CCTime)t skewX:(float)sx skewY:(float)sy

Parameters

t

Action duration.

sx

X skew value in degrees, between -90 and 90.

sy

Y skew value in degrees, between -90 and 90.

Return Value

New skew action.

Declared In

CCActionInterval.h