动作类型
瞬时动作:
瞬间执行的动画,我们无法看到它变化的过程。
CCSize s = Director::getInstance()->getWinSize();
CCLabelTTF *label = CCLabelTTF::create("windowslake", "A Damn Mess", 23);
label->setPosition(Vec2(0, s.height / 2));
this->addChild(label, 1);
// 根据提供的点执行设置位置动作
CCPlace *place = CCPlace::create(Vec2(s.width / 2, s.height / 2));
label->runAction(place);
// 隐藏动作(使我们的控件不可见)
CCHide *hide = CCHide::create();
label->runAction(hide);
// 显示动作
CCShow *show = CCShow::create();
label->runAction(show);
// 当控件可见时,使其隐藏,当其隐藏时,使其可见
CCToggleVisibility *tv = CCToggleVisibility::create();
label->runAction(tv);
CCToggleVisibility *tv2 = CCToggleVisibility::create();
label->runAction(