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!
1 Answer
1I 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");