请教一下,碰到个问题,cocos2dx里在执行的CCSequence的时候,第一个action动画会被中断,动画没有完成,第二个callback函数也不会回调调用,请问有碰到过这个问题的大牛吗?(在动画的同时,会有多次touch屏幕的操作,是这个导致动画没办法执行完吗?)代码片段如下:
CCCallFunc *callback = CCCallFunc::create(this,callfunc_selector(ExplosionMonster::explosiveAnimCallback));
this->runAction(CCSequence::create(this->exploAnimate ,callback ,NULL));
```
touch是在layer里面:
bool GameLayer::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent)
{
if(mPlayerSprite->getFirstShow())
return false;
else
return true;
}
void GameLayer::ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent)
{
}
void GameLayer::ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent)
{
CCPoint location = pTouch->getLocation();
CCPoint sprite_location = mPlayerSprite->getPosition();
if(location.x > sprite_location.x + 30)
{
mPlayerSprite->right_fly(location);
}
else if( location.x < sprite_location.x - 30)
{
mPlayerSprite->left_fly(location);
}
else
{
mPlayerSprite->normal_fly(location);
}
}
void GameLayer::ccTouchCancelled(CCTouch *pTouch, CCEvent *pEvent)
{}
```