Inherits from CCNode : NSObject
Declared in CCParallaxNode.h

Overview

CCParallaxNode: A node that simulates a parallax scroller

The children will be moved faster / slower than the parent according the the parallax ratio.

Tasks

Properties

parallaxArray

array that holds the offset / ratio of the children

@property (nonatomic, readwrite) ccArray *parallaxArray

Declared In

CCParallaxNode.h

Instance Methods

addChild:z:parallaxRatio:positionOffset:

Adds a child to the container with a z-order, a parallax ratio and a position offset It returns self, so you can chain several addChilds.

- (void)addChild:(CCNode *)node z:(NSInteger)z parallaxRatio:(CGPoint)c positionOffset:(CGPoint)positionOffset

Availability

Declared In

CCParallaxNode.h