
5 Mar
2013
5 Mar
'13
3:16 a.m.
Gottlob Frege wrote:
And while I'm here: how about interpolators that only have a fixed value at one end or the other - ie count down or count up timers/clocks/counters. Maybe not really interpolators, but still value-animators, and useful to be able to have these work within the system.
I think in HOTween you could accomplish this with something like: HOTween.To(myObject, 1, new TweenParms() // tween fieldName of myObject by 1 // relative to its current value (i.e. x=x+1) .Prop("fieldName",1,true) // loop infinitely // incremental loops (i.e. x to y, y to y+*y-x) and so on) .Loops(-1,LoopType.Incremental) );