- Home /
Vehicle animation on a 2d map
Hello everyone,
I need to know if I can have a animation for the train for the entire navigation, or I have to make a separate animation for each destination it will go. (please check attached image).
So lets say, the train parks at the circle, and it will go to the square, triangle, star ... depending on user input.
Also it might be parking at the last shape or a shape in the middle and drive backwards to shape1. like going from triangle to circle or square. All possible.
As I remember of how it was in flash, we could say goToAndPlay(30) and have a stop function at the tapped destination, also could play timeLine in reverse in time.
This way solves my task, but how would you that using Unity's animator and animation.
I thought of having each destination (shape on my pic), as a State and having transition from each shape to other every shape.
But this will make a messy complicated State Diagram and there must be better way.
Any hints or links would help :)
Thanks in Advacnce
Your answer
Follow this Question
Related Questions
Attempting to change AnimatorController during Runtime 0 Answers
My Anima 2D's flipped animations are bugging out. 0 Answers
How can I sync animations between two avatars using the same animator controller? 0 Answers
Animator Controller 2D RPG Best Practices 0 Answers
Animtion looping if joystick is held 0 Answers