[Tweener] Instant tween

Archont archont at gmail.com
Wed Aug 6 11:07:19 PDT 2008


I'm pretty certain this has been asked already as it looks like a
useful feature. I did take a look around but didn't quite find the
answer though.

What I'd use is a quick function that takes the parameters of a
tweening object, ignores all Tweener-specific ones (time, transition,
_color, _bezier...) and instantly applies the values without having to
go through all the needless Tweener code.

As far as I've peeked in the code Tweener already does this, however
there are two disadvantages. The first is that I use private static
const objects to store all the tweening parameters. If I want an
instant tween I have to clone the objects via a quick bytearray
function and set the time to zero - not so quick if you're doing it en
masse. The second disadvantage is that I'm kind of strict about my
code and using Tweener to _instantly_ change the parameters isn't
immediately obvious.

-- 
Pozdrawiam / Regards

Jacek "archont" Janiszewski
Samwise Interactive


More information about the Tweener mailing list