Fades an object that implements the CCRGBAProtocol protocol. It modifies the opacity from the current value to a custom one.
Class CCFadeTo
#include <Geode/cocos/actions/CCActionInterval.h>classCCFadeTo:publiccocos2d::CCActionInterval{ ... }
⚠️ This action doesn't support "reverse"
Examples0
Public static methods1
staticcocos2d::CCFadeTo*create(floatduration,_::GLubyteopacity)
creates an action with duration and opacity
Public member functions4
boolinitWithDuration(floatduration,_::GLubyteopacity)
initializes the action with duration and opacity
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*pZone)
No description provided
virtualvoidstartWithTarget(cocos2d::CCNode*pTarget)
No description provided
Fields0
Protected member functions0
Protected fields2
_::GLubytem_toOpacity;
No description provided
_::GLubytem_fromOpacity;
No description provided