here is my problem
when i was use cocos2d-x 1.0.x:
1.I create a CCSprite
2.I let the sprite run a CCRepeatForever animation like walking.
3.When the sprite hitted by a monster i let the sprite run a injure animation just call runaction but do not stop the previous walking action.
4.The result is sprite stop walking and play injure animation and keep walking when the injure animation finished.(that’s what i am expected)
When i use cocos2d-x 2.0
I also create a sprite and let it run repeat forever walking animation and when sprite hitted by monster i let sprite run injure action once but the walking action is not stoped so the walking animation and injure animation are play simultaneously.
What’s wrong with it? How to fix this problem?