How to set radial ProgressTimer progress to start increasing from the bottom(6 o'clock) to top?

Currently if you apply ProgressTimer on a sprite and set any percentage, it will start its progress from top mid (12 o’clock) to whatever the percentage provided. I want to start the progress from bottom mid (6 o’clock), i played with the setMidpoint and setBarChangeRate but could not produce the required result. Any help will be much appreciated.

My bad. I just achieved the required result by setting the rotation of the image to 180.

ProgressTimer *topImage = ProgressTimer::create(Sprite::createWithSpriteFrameName(red_circle_topImage));
topImage->setRotation(180);
topImage->setType(cocos2d::ProgressTimer::Type::RADIAL);
topImage->setPercentage(50);
addChild(topImage);

1 Like

Hi, can you guide me how to use progresstimer class :slight_smile: ?