# CCParallaxNode Class Reference

Inherits from | CCNode : CCResponder : NSObject
Declared in | CCParallaxNode.h

## Overview

CCParallaxNode is a node that simulates a classic parallax scroller.

Child nodes will be moved faster / slower than the parent node according to the parallax ratio specified.

## Tasks

### Accessing the Parallax Node Attributes

- `parallaxArray` property

### CCParallaxNode Child Management

- `– addChild:z:parallaxRatio:positionOffset:`

## Properties

### parallaxArray

Array that holds the offset / ratio of the child nodes.

`@property (nonatomic, readonly) NSArray *parallaxArray`

#### Declared In

`CCParallaxNode.h`

## Instance Methods

### addChild:z:parallaxRatio:positionOffset:

Adds the specified child node with z-order, ratio and offset values to the container.

`- (void)addChild:(CCNode *)node z:(NSInteger)z parallaxRatio:(CGPoint)c positionOffset:(CGPoint)positionOffset`

#### Parameters

node

  Node to use.

z

  Z Order to use.

c

  Parallax ratio to use.

positionOffset

  Parallax offset to use.

#### Declared In

`CCParallaxNode.h`