- 本帖最后由 snowcrow0802 于 2013-5-4 16:31 编辑 *
我?在在? CocosDragon 的?例
我用 C++ ?用 JS
我?在 Dragon 碰到炸??要??作,
animationManager->runAnimationsForSequenceNamed(“Hit”);的?候,
?程式跑到CCBAnimationManager::runAnimationsForSequenceIdTweenDuration
?行 mRootNode->stopAllActions(); ?
?面的 ccArrayRemoveAllObjects(pElement->actions);
??致 CCBAnimationManager::mSequences 被 NULL
所以接下?的要抓?作?CCBSequence* CCBAnimationManager::getSequence(int nSequenceId)程式就停掉了
?是 engine 的 bug??
?是我哪??? ?致????
我?得在 ccArrayRemoveAllObjects(pElement->actions) ???只是要 清空 目前的使用的actions清?但他?? action 的基本?料都一起清空