Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time. Useful to simulate ‘slow motion’ or ‘fast forward’ effect.
Class CCSpeed
#include <Geode/cocos/actions/CCAction.h>
classCCSpeed:publiccocos2d::CCAction{ ... }
⚠️ This action can't be Sequenceable because it is not an CCIntervalAction
Examples0
Public static methods1
staticcocos2d::CCSpeed*create(cocos2d::CCActionInterval*pAction,floatfSpeed)
create the action
Public member functions11
floatgetSpeed()
No description provided
boolinitWithAction(cocos2d::CCActionInterval*pAction,floatfSpeed)
initializes the action
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*pZone)
No description provided
virtualvoidstartWithTarget(cocos2d::CCNode*pTarget)
No description provided
virtualvoidstop()
No description provided
virtualboolisDone()
No description provided
virtualcocos2d::CCActionInterval*reverse()
No description provided
voidsetInnerAction(cocos2d::CCActionInterval*pAction)
No description provided
cocos2d::CCActionInterval*getInnerAction()
No description provided
Fields2
floatm_fSpeed;
No description provided
cocos2d::CCActionInterval*m_pInnerAction;
No description provided