|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCParallaxNode.h>
Inheritance diagram for CCParallaxNode:
Collaboration diagram for CCParallaxNode:Public Member Functions | |
| void | addChild:z:parallaxRatio:positionOffset: (CCNode *node,[z] NSInteger z,[parallaxRatio] CGPoint c,[positionOffset] CGPoint positionOffset) |
Protected Attributes | |
| ccArray * | parallaxArray_ |
| CGPoint | lastPosition |
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.
| void CCParallaxNode::addChild:z:parallaxRatio:positionOffset: | ( | CCNode * | node, |
| [z] NSInteger | z, | ||
| [parallaxRatio] CGPoint | c, | ||
| [positionOffset] CGPoint | positionOffset | ||
| ) | [virtual] |
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* CCParallaxNode::parallaxArray [read, write, assign] |
array that holds the offset / ratio of the children