cocos2dx Action 动作

前端之家收集整理的这篇文章主要介绍了cocos2dx Action 动作前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
auto move1 = MoveTo::create(2,Vec2(visibleSize.width - 100,visibleSize.height / 2));
    auto move2 = MoveBy::create(2,Vec2(-visibleSize.width + 200,0));
    auto scale = ScaleTo::create(2,1);

    luo->runAction(Sequence::create(Sequence::create(move1,Spawn::create(move2,scale,NULL),CallFunc::create([](){ MessageBox("Ok","004"); }),NULL));
原文链接:/cocos2dx/340107.html

猜你在找的Cocos2d-x相关文章