Class CCFollow

#include <Geode/cocos/actions/CCAction.h>
classCCFollow:publiccocos2d::CCAction{ ... }

Since v0.99.2

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.

Examples0
Public static methods1
staticcocos2d::CCFollow*create(
cocos2d::CCNode*pFollowedNode
,)

creates the action with a set boundary, It will work with no boundary if

Parameters

rect

is equal to CCRectZero.
Public member functions7
boolisBoundarySet()
No description provided
voidsetBoudarySet(
boolbValue
)

alter behavior - turn on/off boundary

boolinitWithTarget(
cocos2d::CCNode*pFollowedNode
,)

initializes the action with a set boundary

virtualcocos2d::CCObject*copyWithZone()
No description provided
virtualvoidstep()
No description provided
virtualboolisDone()
No description provided
virtualvoidstop()
No description provided
Fields0
Protected member functions0
Protected fields9
cocos2d::CCNode*m_pobFollowedNode
;
No description provided
boolm_bBoundarySet
;
No description provided
boolm_bBoundaryFullyCovered
;
No description provided
cocos2d::CCPointm_obHalfScreenSize
;
No description provided
cocos2d::CCPointm_obFullScreenSize
;
No description provided
floatm_fLeftBoundary
;
No description provided
floatm_fRightBoundary
;
No description provided
floatm_fTopBoundary
;
No description provided
floatm_fBottomBoundary
;
No description provided