1
\$\begingroup\$

I want to place a horizontal progress bar in my Android application and I want to change its progress color. I used the following code, but the progress bar is not being displayed.

CCProgressTimer progressBar = CCProgressTimer.progress("progressbar.png");
progressBar.setType(kCCProgressTimerTypeHorizontalBarLR);
progressBar.setScale(5);
progressBar.setAnchorPoint(CGPoint.ccp(0, 0));
progressBar.setPosition(CGPoint.ccp(0,0));
addChild(progressBar);
\$\endgroup\$
1
  • \$\begingroup\$ are you sure it's not behind some other object? \$\endgroup\$
    – Ali1S232
    Nov 29, 2011 at 21:27

1 Answer 1

2
\$\begingroup\$

You should add a CCProgressFromTo action into your progressBar, then show progressBar.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .