ホームページ >データベース >mysql チュートリアル >cocos2dx 动作篇 组合动作Spawn 和 Sequence
Size visibleSize = Director::getInstance()-getVisibleSize(); Vec2 origin = Director::getInstance()-getVisibleOrigin(); Sprite * sp = Sprite::create(HelloWorld.png); sp-setPosition(Point(visibleSize.width/2,visibleSize.height/2)); this-addCh
Size visibleSize = Director::getInstance()->getVisibleSize();///////////////////////////////////////创建组合动作将动作组合起来
//顺序执行
Action * action = Sequence::create(moveby, jumpby, rotateby, NULL);
//一起执行
Action * action = Spawn::create(moveby, jumpby, rotateby, NULL);