Inherits from CCAction : NSObject
Conforms to NSCopying
Declared in CCAction.h

Overview

CCFollow is an action that “follows” a node.

Eg:

[layer runAction: [CCFollow actionWithTarget:hero]];

Instead of using CCCamera as a “follower”, use this action instead.

Tasks

Properties

boundarySet

alter behavior – turn on/off boundary

@property (nonatomic, readwrite) BOOL boundarySet

Declared In

CCAction.h

Class Methods

actionWithTarget:

creates the action with no boundary set

+ (id)actionWithTarget:(CCNode *)followedNode

Declared In

CCAction.h

actionWithTarget:worldBoundary:

creates the action with a set boundary

+ (id)actionWithTarget:(CCNode *)followedNode worldBoundary:(CGRect)rect

Declared In

CCAction.h

Instance Methods

initWithTarget:

initializes the action

- (id)initWithTarget:(CCNode *)followedNode

Declared In

CCAction.h

initWithTarget:worldBoundary:

initializes the action with a set boundary

- (id)initWithTarget:(CCNode *)followedNode worldBoundary:(CGRect)rect

Declared In

CCAction.h