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.
Class CCFollow
#include <Geode/cocos/actions/CCAction.h>
classCCFollow:publiccocos2d::CCAction{ ... }
Examples0
Public static methods1
staticcocos2d::CCFollow*create(cocos2d::CCNode*pFollowedNode,)
creates the action with a set boundary, It will work with no boundary if
rect
is equal to CCRectZero.
Public member functions7
boolisBoundarySet()
No description provided
boolinitWithTarget(cocos2d::CCNode*pFollowedNode,)
initializes the action with a set boundary
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*pZone)
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