Class CCActionTween

#include <Geode/cocos/actions/CCActionTween.h>
classCCActionTween:publiccocos2d::CCActionInterval{ ... }

Since v0.99.2

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:

Examples0
Public static methods2
staticcocos2d::CCActionTween*create(
floataDuration
,,
floatfrom
,)

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
,,
floatfrom
,)

initializes the action with the property name (key), and the from and to parameters.

virtualvoidstartWithTarget()
No description provided
virtualvoidupdate()
No description provided
virtualcocos2d::CCActionInterval*reverse()
No description provided
voidupdateTargetValue()
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
Protected member functions0
Protected fields0