-
Smooth Counters
Hello Clickteam forums.
On my current iPhone app I'm working on, there's an XP system. However, every time I add a value to the counter, it jumps instantly to that value.
I have tried to conjure up some fast loop, makeshift and other methods of getting it to simply get the counter to smoothly add.
Has anyone had this problem, and more importantly a fix?
Thanks in advance.
-Verbage
-
Do you mean if you add 10 to your counter it shows as the new value instantly (either number or bar) but you want it to count up gradually?
If so, store your XP in an alterable value, or global value or a hidden counter. This will be the real XP value. Then just add an event similar to the following:
-- If counter value < Real value ... then add 1 to Counter Value.
The above will increment your visible counter until it reaches to the real hidden value.
-
AWESOME. Thank you. Will try it right now.
EDIT: It works! Thank you so much.
-
Alternatively you can use 'smooth animation' on the "Interface Bar Object" extension which automatically creates such an effect.