![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCAction.h>
Public Member Functions | |
(id) | - initWithTarget: |
(id) | - initWithTarget:worldBoundary: |
Static Public Member Functions | |
(id) | + actionWithTarget: |
(id) | + actionWithTarget:worldBoundary: |
Protected Attributes | |
CCNode * | _followedNode |
BOOL | _boundarySet |
BOOL | _boundaryFullyCovered |
CGPoint | _halfScreenSize |
CGPoint | _fullScreenSize |
float | _leftBoundary |
float | _rightBoundary |
float | _topBoundary |
float | _bottomBoundary |
Properties | |
BOOL | boundarySet |
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.
+ (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
- (BOOL) boundarySet [read, write, assign] |
alter behavior - turn on/off boundary