[Tweener] Instant tween

Jason Van Pelt VanPeltJ at peteramayer.com
Wed Aug 6 11:39:24 PDT 2008


We breifly talked about "from" values in the past. I've got an animation
class that utilizes Tweener into which i've incorporated "from" values. I
wrote a detailed post about how it works which can be read here:

http://www.j-ink.com/blog/2008/05/from-values-in-tweener.html

As Zeh points out, you can also use tweens with no time property, but I
prefer to keep everything in one line of code.


JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

PETER A MAYER ADVERTISING
324 CAMP ST  •  NEW ORLEANS, LA 70130
TEL 504-210-1232  •  FAX 504-529-4431

VANPELTJ at PETERAMAYER.COM  •  WWW.PETERAMAYER.COM







                                                                           
             Archont                                                       
             <archont at gmail.co                                             
             m>                                                         To 
             Sent by:                  tweener at lists.caurinauebi.com       
             tweener-bounces at l                                          cc 
             ists.caurinauebi.                                             
             com                                                   Subject 
                                       [Tweener] Instant tween             
                                                                           
             08/06/2008 01:07                                              
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             tweener at lists.cau                                             
               rinauebi.com                                                
                                                                           
                                                                           




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
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com


-----------------------------------------------------------------------------  
PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient is unauthorized and may be illegal.  
-----------------------------------------------------------------------------  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080806/2c17636f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 35276544.jpg
Type: image/jpeg
Size: 20453 bytes
Desc: not available
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080806/2c17636f/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic24596.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080806/2c17636f/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080806/2c17636f/attachment-0003.gif>


More information about the Tweener mailing list