- Home /
Question by
Bmc777 · Mar 09, 2011 at 01:40 AM ·
animationjavascriptdisappearreverse
Reversing Door Animation
I have made an animation for opening a door to a house and the animation works fine, I was wondering if it is possible to just reverse this animation instead of making a whole new door closing animation. I know how to reverse an animation normally, just set the speed of the animation to -1, but when I do this the door closes but then disappears. How can I stop this from happening? I write code in JavaScript so, if possible, that would be the most convenient response. Thank you!
Comment
Best Answer
Answer by DaveA · Mar 09, 2011 at 02:34 AM
I think you also have to set the initial time for the reversed animation to the end first.
thing.animation["move"].time = thing.animation["move"].length;
thing.animation.speed = -1;
thing.animation.Play("move");
Your answer
Follow this Question
Related Questions
Expecting EOF found else?? 1 Answer
Camera Move 1 Answer
How do I make my script switch back to my regular animations 1 Answer