newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
pSprite->setAnchorPoint(CCPoint(0,0));
        pSprite->setPosition(CCPoint(300,700));
        CCFiniteTimeAction* pAcion = CCEaseElasticOut::actionWithAction(
            CCMoveTo::create(1.0f,CCPoint(300,300)),0.6f);//通过第二个参数来调整振幅,或者速度,值越大越慢振幅越小
        pSprite->runAction( CCRepeatForever::create(
            (CCActionInterval *)CCSequence::create(pAcion,CCMoveTo::create(0.5f,ccp(300,700)),
            NULL)));

 

posted on 2013-07-23 21:34  一枚程序  阅读(2588)  评论(0编辑  收藏  举报