Public Member Functions | Properties

CCParallaxNode Class Reference

#import <CCParallaxNode.h>

Inherits CCNode.

Collaboration diagram for CCParallaxNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Properties

ccArray * parallaxArray

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.

Definition at line 34 of file CCParallaxNode.h.


Member Function Documentation

- (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.

Since:
v0.8

Property Documentation

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

array that holds the offset / ratio of the children

Definition at line 40 of file CCParallaxNode.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1