Tutorial 2 Devlog


Tutorial Work:

During this tutorial we had to import our models, rigs and animations from MODULE 2 into unity. Animations in unity are not always straight forward but they contribute significantly to making a game feel right. That's why I purposefully chose to make not so great animations in the previous self study in order to highlight what NOT to do. With this being said, I managed to get all the animations working correctly in unity. 

We were also tasked with creating character movement (I did some third person movement), and also briefly looked at an example of using Unity Events. Unity events basically allow you to trigger an "event" or an action or something similar based on an something else happening. This can be achieved through code but needs to be specific for each situation, using events can simplify this process and make it do something different based on a condition amongst other things.

Above is my character movement and camera offset to give it a third person angle. Above is also an example of a use case for unity events, when the player touched the block in front of it, using the event component and very little code, we can disable the block on collision with the player.

Animations:

As I mentioned at the start we were tasked with importing animations from self study 2 into unity. After doing so we had to attempt to make the players movement determine the current animation. The animations were: Idle, Walking and Waving. 

This is the players walking animation being triggered by the movement of the player. To achieve this I wrote some code to roughly work out the players velocity and this determined whether the player was "walking" or not and the animation was triggered accordingly.

Walking animation playing in unity.

Idle animation in unity.

Waving animation in unity.

Proof of walking and and idle working together.

Sorry about all the above GIFs but just wanted to highlight all the work that was done. This tute was great, wasnt the most enjoyable for me as I struggled a little importing the animations, however after this it was pretty straight forward and I sure have learnt a lot...

Leave a comment

Log in with itch.io to leave a comment.