[Tweener] making a tween that starts and finishes with the same value...
Joel Finnström
joel at stendahls.net
Thu May 29 01:44:45 PDT 2008
Hi!
Thanks everyone for the great help. it solved all my problems!
/Joel
Zeh Fernando skrev:
> Hello Joel,
>
>> I really need som help since I'm stuck! I'm doing a project with
>> papervision and I use Tweener to move the camera around. I'd like to
>> ad a somewhat organic feel to the movement of the camera and thought
>> that rotatint the Y axis would give a nice touch. My question here is
>> if I can use Tweener to get a tween that goes from say 0 up to say 50
>> and then back to 0. Making the tween go from 0 to 50 is no problem
>> but I can't figure out how to make it return back to 0 in the same
>> tween instance....please help!
>
> You can use delays to add new 'steps' to the animation.
>
> Tweener.addTween(mydc, {x:0, time:1});
> Tweener.addTween(mydc, {x:50, time:1, delay:1});
>
> This makes mydc.x go to 0, then 50.
>
>
> Zeh
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
More information about the Tweener
mailing list