CCParallaxNode Class Reference
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
-
parallaxArray
array that holds the offset / ratio of the children
property -
– 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.
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