我为一个精灵添加了摇晃并试图在摇动之后将其重置,但它现在正在运行:
cocos2d::CCShaky3D* shaky = cocos2d::CCShaky3D::create(3.0, true, cocos2d::ccg(64,64), 1);
gfScene->runAction(CCSequence::create(shaky,shaky->reverse(),NULL));
我错过了什么?
答案 0 :(得分:1)
我发现我应该将CCStopGrid :: action()添加到序列结尾:
gfScene->runAction(CCSequence::create(shaky,shaky->reverse(),CCStopGrid::action(),NULL));