Sunday, February 28, 2021

Unity Tutorial 04

 

For the first tutorial this week, we worked with adding animations to our characters. We briefly covered animations last semester, however not in as much detail.The animations gave Ruby and the robot some personality, making the game less static and more life-like. In order to animate a GameObject we needed to add an ‘Animator’ component. We then made a controller stored in the animations folder. The controller allows us to manage states between different animations. The animations were made using sprites to show different character movements. The sprites are added to the timeline and can span over a chosen period of time depending how fast or slow you want the animation to play.

 

For the second part of the tutorial, we had Ruby shoot cog projectiles. A script was made for the cog. The cog was also added to the prefab and removed from the hierarchy window so it would only appear when the player presses the ‘C’ to shoot. In the script we learned how to create our own physics system for the projectile. Another animation was also added to the Robot when it collided with the cog, it turned into a dancing friendly character.

 

Here is a screenshot of the Unity progress so far



No comments:

Post a Comment

Doing

  We are nearing the end of this semester and the book we’ve been working throughout the semester is in its final editing stages. This week,...