1. 程式人生 > >cocos2d-x,重復動作

cocos2d-x,重復動作

col rep png pan pre scaleto sprite span cal

    Sprite * sprite11 = Sprite::create("4.png");
    sprite11->setPosition(visibleSize / 2.0f);
    addChild(sprite11);
    ScaleBy * scaleTo = ScaleBy::create(2.0f, 1.1f);

    RepeatForever * rf = RepeatForever::create(scaleTo);
    sprite11->runAction(rf);    

cocos2d-x,重復動作