cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCParallaxNode Class Reference

#import <CCParallaxNode.h>

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

List of all members.

Public Member Functions

(void) - addChild:z:parallaxRatio:positionOffset:

Protected Attributes

ccArray_parallaxArray
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) 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.

Since:
v0.8

Property Documentation

- (ccArray*) parallaxArray [read, write, assign]

array that holds the offset / ratio of the children


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