cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCParallaxNode Interface Reference

#include <CCParallaxNode.h>

+ Inheritance diagram for CCParallaxNode:
+ Collaboration diagram for CCParallaxNode:

List of all members.

Public Member Functions

void addChild:z:parallaxRatio:positionOffset: (CCNode *node,[z] NSInteger z,[parallaxRatio] CGPoint c,[positionOffset] CGPoint positionOffset)

Protected Attributes

ccArrayparallaxArray_
CGPoint lastPosition

Properties

ccArrayparallaxArray

Detailed Description

CCParallaxNode: A node that simulates a parallax scroller

The children will be moved faster / slower than the parent according the the parallax ratio.


Member Function Documentation

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.

Since:
v0.8

Property Documentation

ccArray* CCParallaxNode::parallaxArray [read, write, assign]

array that holds the offset / ratio of the children


The documentation for this interface was generated from the following file: