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)));