You return `cocos2d::ActionInterval` rather than `Action`. Please correct the comments .