[Tweener] Ending a Tween on user input

Zeh Fernando zeh at zehfernando.com
Thu Sep 18 09:36:33 PDT 2008


Well, you could do

Tweener.removeTweens(nameoftheobj);

When the user presses the spacebar, and then just set its
visibility/opacity, maybe with a new (shorter) tween?

Zeh

On Thu, Sep 18, 2008 at 1:33 PM, Daniel Rodríguez <dornad at gmail.com> wrote:

> Hello guys,
>
> I have this (Collada) model that fades out (using Tweener) in 13 seconds,
> but I want my user to be able to use the spacebar to to force the fade-out
> (i.e., don't wait 13 seconds ).
>
> Is there anyway to do this?  I've been going over the docs but haven't seen
> anything or any example of this.
>
> Thanks.
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080918/d310f0e4/attachment.htm>


More information about the Tweener mailing list