[Tweener] making a tween that starts and finishes with the same value...
Zeh Fernando
zehfernando at zeh.com.br
Wed May 28 07:58:27 PDT 2008
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
More information about the Tweener
mailing list