新手问题。CCSequence里的动画,会被touch中断而导致执行不完吗?

请教一下,碰到个问题,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)
{}



```

Sequence和Touch并没有直接关系啊。不知道楼主的runAction跑的是什么?

感谢回复,我的action执行了一个动画,如下:

    CCTexture2D *pTexture = CCTextureCache::sharedTextureCache()->addImage(EXPLORSIVE_ANIMA_FILE);
    this->exploAnimation  = CCToolsLib::getInstance()->animBatchWithFrame(pTexture,5,0.1f,114,0,114,112);
    this->exploAnimate = CCAnimate::create(this->exploAnimation);
    this->exploAnimate->retain();


```


不是每次都会被中断,但是执行多次之后,会出现action没有结束的情况。一直很费解。




*--- Begin quote from ____*

引用第1楼偶尔e网事于2014-04-19 13:40发表的  :
Sequence和Touch并没有直接关系啊。不知道楼主的runAction跑的是什么? http://www.cocoachina.com/bbs/job.php?action=topost&tid=198624&pid=931403
![](p_w_picpath/back.gif)



*--- End quote*