CCFollow Class Reference
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
-
boundarySet
alter behavior – turn on/off boundary
property -
+ actionWithTarget:
creates the action with no boundary set
-
+ actionWithTarget:worldBoundary:
creates the action with a set boundary
-
– initWithTarget:
initializes the action
-
– initWithTarget:worldBoundary:
initializes the action with a set boundary