1
2
3
4
5
6
7
// cocos2d-x文字移动
CCLabelTTF* pLabelTTF = CCLabelTTF::create( "dcasfdsafdsa", "Arial", 40 );
pLabelTTF->setPosition(ccp( 250, 20 ));
pLabelTTF->setColor(ccc3(240, 222, 171));
CCMoveTo *move = CCMoveTo::create(2.0f, ccp(0, 250));
this->addChild(pLabelTTF);
this->runAction(move);