I’m trying to make some numbers PunchScale whenever they increase, imagine a hit count going up every time you hit an enemy.
The following code works, but my problem is I want the animation to restart / interrupt / replay when there are multiple calls in a short time frame.
Currently the first animation plays out, and then once that’s done the next one starts. So it’s played for hit count 1, but then as count 2, 3, 4 happen it’s still on the first animation and it looks wrong.
iTween.PunchScale(number,
iTween.Hash(
"amount",new Vector3(10, 10, 1),
"time",1/speed
)
);
I’ve tried the same thing using ScaleTo and I get the same problem.
Does anyone know how to get around this and force iTween to restart the animation from scratch?