CCActionFlipX Class Reference

Inherits from CCActionInstant : CCActionFiniteTime : CCAction : NSObject
Declared in CCActionInstant.h

Overview

This action flips the target in x direction.

Note: Target must be a CCSprite node or inherit from CCSprite.

Creating a Flip Action

+ actionWithFlipX:

Creates a flip action with x direction flipped or non flipped.

+ (id)actionWithFlipX:(BOOL)x

Parameters

x

Defines if target is flipped.

Return Value

The flip action object.

Declared In

CCActionInstant.h

– initWithFlipX:

Initializes a flip action with x direction flipped or non flipped.

- (id)initWithFlipX:(BOOL)x

Parameters

x

Defines if target is flipped.

Return Value

An initialized flip action object.

Declared In

CCActionInstant.h