cocos2dx3.0 进度条

ProgressTimer*pt = ProgressTimer::create(sp1);
	pt->setType(ProgressTimer::Type::BAR);
	pt->setBarChangeRate(Point(1,0));//高为100%
	pt->setMidpoint(Point(0,0));//设置增长中心
	pt->runAction(ProgressFromTo::create(5,0,100));
	pt->setPosition(Point(winSize/2));
	this->addChild(pt);
效果为从左到又的进度条

你可能感兴趣的:(cocos2dx3.0 进度条)