mirror of
https://github.com/wu736139669/OzgGameRPG.git
synced 2026-08-08 07:17:40 +00:00
完善战斗系统
This commit is contained in:
@@ -238,7 +238,8 @@ void RPGBattlePlayerSprite::animHurt()
|
|||||||
this->removeChildByTag(kRPGBattlePlayerSpriteTagArm, true);
|
this->removeChildByTag(kRPGBattlePlayerSpriteTagArm, true);
|
||||||
|
|
||||||
CCAnimation *animation = CCAnimation::createWithSpriteFrames(this->m_spriteFramesHurt, 0.2);
|
CCAnimation *animation = CCAnimation::createWithSpriteFrames(this->m_spriteFramesHurt, 0.2);
|
||||||
CCSequence *animate = CCSequence::create(CCAnimate::create(animation), CCDelayTime::create(1.5), CCCallFunc::create(this, callfunc_selector(RPGBattlePlayerSprite::animNormal)), NULL);
|
|
||||||
|
CCSequence *animate = CCSequence::create(CCAnimate::create(animation), CCDelayTime::create(1.5), CCCallFunc::create(this, callfunc_selector(RPGBattlePlayerSprite::animNormal)), NULL);
|
||||||
this->runAction(animate);
|
this->runAction(animate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user