How can I place a ProgressBar in Android using Cocos 2d?
        Posted  
        
            by 
                Laxmipriya
            
        on Game Development
        
        See other posts from Game Development
        
            or by Laxmipriya
        
        
        
        Published on 2011-11-29T07:29:43Z
        Indexed on 
            2011/11/29
            10:10 UTC
        
        
        Read the original article
        Hit count: 549
        
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);
© Game Development or respective owner