@shinichi wrote:
hello.
I use, Cocos2d-x v3.10, Cocos Studio v3.10.
「addFrameEndCallFunc」 Not occasionally callback.
Help me!Tried iOS 9.2 and 9.3.
My Code.
auto layer = (Layer*)CSLoader::createNode("NextStage.csb"); infoLayer->addChild(layer, LayerIds::STAGE_EFFECT); auto stageAction = CSLoader::createTimeline("NextStage.csb"); stageAction->gotoFrameAndPlay(0, 80, false); stageAction->addFrameEndCallFunc(40, "UpdateStageImage", [this](){ CCLOG("frame callback 111"); }); stageAction->addFrameEndCallFunc(80, "removeNextStage", [layer](){ CCLOG("frame callback 222"); }); layer->runAction(stageAction);
Thank you.
Posts: 1
Participants: 1