Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17075

Animating cc.ProgressBar component

$
0
0

@skquark wrote:

I'm using the built in ProgressBar component, not ProgressTimer, and I'm able to set percent with no problem, but need it to smoothly animate the percentage change, not just jump there. I saw there was a ProgressTo ActionInterval, but that's for the ProgressTimer. The API Reference showed no built in method to animate to, and I found the file ProgressBarCtrl.js in the example templates in resources, but no documentation on how to use it, although the code inside looks like it does an animated update of the progress. Ideally it should be built in to the cc.ProgessBar Class so we can do something like matchProgressBar.progressTo(0.8, 0.25); which would make the most sense, or to do it like the old progressTime.runAction(cc.ProgressTo(1, 25)); method, but that doesn't apply here currently.
Do I need to write my own custom property animation function for the .progress = setter, or is there a better way? Thanks..

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>