Tween as counter. progress issue

Hello,
I found that when I set any repeat value in Tween-Counter, then .totalProgress and .progress properties gives me same output. bug ?

Try loop instead of repeat. The way I understand it, loop means going through the whole tween again, repeat is repeating the property tween within the main tween. Difference is you can repeat some properties of the same tween, but only loop the whole tween. So repeat is included in progress.

If you want to use tween as counter, you can use addCounter, and it can give you the value you want rather than calculating it yourself from progress. See http://labs.phaser.io/edit.html?src=src\tweens\number%20tween.js.

1 Like

Aha, thanks also for explaining.