This is a quick post to show how I am doing my arcade machine for the TSA game. I needed a way to make the arcade machine controls move along with the player keyboard controls. I can do this two ways:
- Use code to change the the model
- Rig the model and use Unity animator
I chose option #2 because it would be way smoother and allow for more animations in the future, such as pushing the coin button.
Here is what making the animation in Unity looks like. I set up a state called “Left”, and just make a transition from Idle to Left, and from Left back to Idle, this will make a smooth transition so when you hold A, it will go left, and when you let go of A, it will go back to Idle.
Let me know if you have any questions about how I used Animator, or even if you have a better way of animating the arcade machine, it would be a big help!