cocos2d for iPhone  2.0.0
2D game engine for iOS and OS X
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Public Member Functions | Static Public Member Functions | Properties
CCFollow Class Reference

#import <CCAction.h>

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

List of all members.

Public Member Functions

(id) - initWithTarget:
(id) - initWithTarget:worldBoundary:

Static Public Member Functions

(id) + actionWithTarget:
(id) + actionWithTarget:worldBoundary:

Properties

BOOL boundarySet

Detailed Description

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.

Since:
v0.99.2

Definition at line 161 of file CCAction.h.


Member Function Documentation

+ (id) actionWithTarget: (CCNode *)  followedNode

creates the action with no boundary set

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

creates the action with a set boundary

- (id) initWithTarget: (CCNode *)  followedNode

initializes the action

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

initializes the action with a set boundary


Property Documentation

- (BOOL) boundarySet [read, write, assign]

alter behavior - turn on/off boundary

Definition at line 168 of file CCAction.h.


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

cocos2d for iPhone API Reference - Generated using Doxygen 1.8.0