技能冷却

   CCSprite *s2 = CCSprite::create("pa1.png");



    s2->setPosition(ccp(200,200));



    addChild(s2,0);    



    CCSprite *s = CCSprite::create("pa2.png");



    CCProgressTimer *pt = CCProgressTimer::create(s);



    pt->setPosition(200,200);



    pt->setType(cocos2d::CCProgressTimerType(kCCProgressTimerTypeRadial));



    this->addChild(pt,1);



    CCProgressTo *t = CCProgressTo::create(8, 100);



    pt->runAction(CCRepeatForever::create(t));

 

你可能感兴趣的:(技能)