要设置CCProgressTimer的起始角度,可以使用setStartAngle方法。该方法接受一个浮点数参数,表示起始角度的度数。

例如:

auto progress = CCProgressTimer::create(sprite);
progress->setType(kCCProgressTimerTypeRadial);
progress->setPercentage(50);
progress->setStartAngle(90); // 设置起始角度为90度
cocos2dx CCProgressTimer设置起始角度

原文地址: https://www.cveoy.top/t/topic/iQQI 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录