Moves a CCNode object x,y pixels by modifying it’s position attribute. x and y are relative to the position of the object. Several CCMoveBy actions can be concurrently called, and the resulting movement will be the sum of individual movements.
Class CCMoveBy
#include <Geode/cocos/actions/CCActionInterval.h>
classCCMoveBy:publiccocos2d::CCActionInterval{ ... }
Examples0
Public static methods1
staticcocos2d::CCMoveBy*create(floatduration,cocos2d::CCPointconst&deltaPosition)
creates the action
Public member functions5
boolinitWithDuration(floatduration,cocos2d::CCPointconst&deltaPosition)
initializes the action
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*pZone)
No description provided
virtualvoidstartWithTarget(cocos2d::CCNode*pTarget)
No description provided
virtualcocos2d::CCActionInterval*reverse()
No description provided
Fields3
cocos2d::CCPointm_positionDelta;
No description provided
cocos2d::CCPointm_startPosition;
No description provided
cocos2d::CCPointm_previousPosition;
No description provided