//在test当中有很多的例子可以尝试 CCSprite* sprite=CCSprite::create("s_hurt.png"); sprite->setPosition(ccp(size.width/2,size.height/2)); this->addChild(sprite); CCGridAction* action=CCShaky3D::create(5.0f,ccp(5,5),5,false); sprite->runAction(action);
//在test当中有很多的例子可以尝试 CCSprite* sprite=CCSprite::create("s_hurt.png"); sprite->setPosition(ccp(size.width/2,size.height/2)); this->addChild(sprite); CCGridAction* action=CCShaky3D::create(5.0f,ccp(5,5),5,false); sprite->runAction(action);