CCParallaxNode Class Reference
| Inherits from | CCNode : CCResponder : NSObject |
| Declared in | CCParallaxNode.h |
Overview
CCParallaxNode is a node that simulates a classic parallax scroller.
Child nodes will be moved faster / slower than the parent node according to the parallax ratio specified.
Instance Methods
addChild:z:parallaxRatio:positionOffset:
Adds the specified child node with z-order, ratio and offset values to the container.
- (void)addChild:(CCNode *)node z:(NSInteger)z parallaxRatio:(CGPoint)c positionOffset:(CGPoint)positionOffsetParameters
- node
Node to use.
- z
Z Order to use.
- c
Parallax ratio to use.
- positionOffset
Parallax offset to use.
Declared In
CCParallaxNode.h