CCActionTween CCActionTween is an action that lets you update any property of an object. For example, if you want to modify the “width” property of a target from 200 to 300 in 2 seconds, then: id modifyWidth = [CCActionTween actionWithDuration:2 key:
Class CCActionTween
#include <Geode/cocos/actions/CCActionTween.h>
classCCActionTween:publiccocos2d::CCActionInterval{ ... }
Examples0
Public static methods2
staticcocos2d::CCActionTween*create(floataDuration,charconst*key,floatfrom,floatto)
creates an initializes the action with the property name (key), and the from and to parameters.
staticcocos2d::CCActionTween*create(,,,)
No description provided
Public member functions5
boolinitWithDuration(floataDuration,charconst*key,floatfrom,floatto)
initializes the action with the property name (key), and the from and to parameters.
virtualvoidstartWithTarget(cocos2d::CCNode*pTarget)
No description provided
virtualcocos2d::CCActionInterval*reverse()
No description provided
Fields4
gd::stringm_strKey;
No description provided
floatm_fFrom;
No description provided
floatm_fTo;
No description provided
floatm_fDelta;
No description provided