How to stop animation
PandaParents
Member Posts: 64
Hi, I had a train actor with animation while it is moving. I wanted the animation to stop when train stopped moving. Right now I had the original train destroyed and spawn a new train in front of it, but the transition was not very smooth. I was wondering if there is a simpler or better way to stop the animation. Thanks!
Comments
So if the train is moving.
Play animation
Otherwise
Change image to a still... (or play a different animation).
You can make a game attribute (call it something like 'train_moving') and check if it = 1 then play animation. then have a rule that changes the 'train_moving' attribute to 0 when the train stops...
For even more control on your animations.
Darren.