animation question..

Hi

i have an animation with transform points, from A to B . (let´s suppose A = Vector3(10,0,0) and B = Vector3(20,0,0) )

a guitexture moves from point A to B correctly, ok…it works, after this , we must to wait two seconds so the user can read the title of the guitexture image, then this guitexture must to return back the same way as it cames… (rewind), so actually i´m doing another animation to roll back… from B to A… but doing animation for this is a bit tedious… what i want is to use the same animation as rewind… :

Is there a way to get the same animation (A to B), be played as (B to A) ? … think in ping … wait 2 seconds… pong… :razz:

If you’re using an Animation, you can set its speed to -1, a la

gameObject.animation["AtoB"].speed = -1.0;
gameObject.animation.Play("AtoB");

Otherwise you’ll have to devise a way to loop backwards instead of forwards.

looks smart… will check it out thanks !..