The “updatecolor” is only invoked after the creation first time, so I call setColor will not affect the bar.
There’re to approaches. First is add “setColor” method to progress bar, then invoke CCSprite::setColor in it, then call updateColor.
The second, is to call updateColor eachtime the bar progress, and look for the new color of sprite.
I’m using the first approach, and fix it by my self. Hope this fix can be merge into the next version.