Thursday, October 17, 2019

My First Game Design: Unity Tutorial 03


The tutorial this week was not a continuation of the video tutorials we had been using the past few weeks but it was instead a written tutorial on how to build a moving clock in Unity. This tutorial goes over many things that we have already learned form the first few video tutorials that we've seen, the main difference in this tutorial is the coding that it goes over.

The first half of the tutorial showed us how to add objects into the scene and how to manipulate them into the clock face and other extremities which we already knew how to do from previous weeks. I did this by placing the objects and setting the scale of them to the specifications of the tutorial.

Later in the tutorial it explains how to rotate objects on the clock face along the Y axis 30 degrees and  use this to create the hour indicators on the clock face. To create the arms of the clock we can use the same approach and at the end of that we have our finished clock face, next we're shown how to animate the clock.

This were the tutorial goes in depth into the code that makes the clock work. The tutorial shows how to use C# script to make the arms of the clock move around the clock face and how to make the clock tell the time, though the coding can get quite complicated, going into things like floating-point values,  I managed to complete the clock and make it work. I thought this tutorial explained how to create a C# script and code the clock very well.

No comments:

Post a Comment