#import <CCParallaxNode.h>
Inherits CCNode.

Public Member Functions | |
| (id) | - addChild:z:parallaxRatio:positionOffset: |
Properties | |
| ccArray * | parallaxArray |
CCParallaxNode: A node that simulates a parallax scroller
The children will be moved faster / slower than the parent according the the parallax ratio.
Definition at line 34 of file CCParallaxNode.h.
| - (id) addChild: | (CCNode *) | node | ||
| z: | (int) | z | ||
| parallaxRatio: | (CGPoint) | c | ||
| positionOffset: | (CGPoint) | 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.
- (ccArray*) parallaxArray [read, write, assign] |
array that holds the offset / ratio of the children
Definition at line 40 of file CCParallaxNode.h.