Tutorial Week 2


This week, our task in the tutorial is to import the human model we created in self-study module 2 into Unity and control its animations. I've had experience working with Unity in other 2D projects before, so it wasn't too difficult for me to switch to the 3D project this time. Below is a gif of my character doing the moving and waving animations

To be able to do this, I used Unity's Animator Controller, a very useful tool for managing animations and triggering them under certain conditions. In my case I used 2 conditions: 1 for waving animation and 1 for walking animation. As for waving, every time I press the space button, the waving animation will trigger exactly once and then return to idle. It's a bit different from walking, where I don't use a trigger parameter anymore, but instead I use a boolean parameter to tell if my character is moving or not. And to do this, I wrote a script that checks the player's input, if they press the movement buttons, the walking boolean will change to true and vice versa.

Leave a comment

Log in with itch.io to leave a comment.