|
Is it possible to create a GUI button that will play an animation (something appears on a terrain - like a bunch of buildings) and then the second click would reverse the animation (or would call a second animation up that would remove the objects from the terrain). Current script being used - and failing - is:
Thanks!
(comments are locked)
|
|
Here's an example I used for a door (with trigger). The tricky thing was that it continued playing backwards from 0. That's why this is a bit complicated: Basically, you can reverse the animation with animation["animationName"].speed = -1.0;.
You should be able to do something similar with GUI-Elements. I hope this helps!
(comments are locked)
|
