|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
#import <CCParallaxNode.h>


Public Member Functions | |
| (void) | - 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 35 of file CCParallaxNode.h.
| - (void) addChild: | (CCNode *) | node | |
| z: | (NSInteger) | 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 42 of file CCParallaxNode.h.