cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions | Properties
CCParallaxNode Class Reference

#import <CCParallaxNode.h>

Inheritance diagram for CCParallaxNode:
Inheritance graph
[legend]
Collaboration diagram for CCParallaxNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - 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 35 of file CCParallaxNode.h.


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

Definition at line 42 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 API Reference - Generated using Doxygen 1.7.4