here is my question, when i use 1.0 version i create a ccsprite and run a RepeatForever action than i run a finit time action the result was the sprite stop the repeat action when run once new action and keep running repeat action when the new action was stoped.
but the 2.0 version of cocos2d-x seems that the repeat action and new finit action will run simultaneously. how to fix that?
the code of an example is here:
CCSprite* spr = CCSprite::create(“spr.png”);//create a sprite
spr~~>setPosition);//set the position
this~~>addChild(spr,3,3);//add to layer
spr~~>runAction));//run a repeat for ever action
//i define a button and write the code in that button’s call back function
CCSprite* spr = this~~>getChildByTag(3);
when i press the button the sprite should stop rolling than move a little bit and keep rolling when it stop moving.
please help me to fix this problem. thanks in advance.