Skip to main content

Unity Tutorial 03

In this Unity tutorial we learned how to utilise the programming language C# in our games to rotate the arms on a clock that we've made in the Unity Editor.


The tutorial was on this page and it was relatively easy to read through and follow. I started from the start in building the clock face out of a 3D Object in game. In this case I used a cylinder. I flattened the cylinder to create a face and moved on to making the hour indicators. For this I had to use a cube 3D Object, and make it long and narrow. I then learned how to use the hierarchy system in the Unity editor to make multiples of the hour indicator. Each time I duplicated one I had to increase it's y rotation by 30 degrees to move it along the clock face's axis. These indicators were then taken from their 'parents' in the hierarchy system and placed as 'children' under the clock object.

Moving on I created the arms next, making each of them a parent of their own for the hour, minute and seconds arms. They all were made different sizes and their rotations started them at the 12th hour on the clock. Now it was time to animate them, and this is where it gets challenging.

This is where we begin to use C# script in Microsoft Visual Studio, and it links in to Unity and updates as we save it. This took a while and a lot of making sure that the code was entered correctly (much like with our Web Development module). To finally get the clock moving was a great feeling and I'm glad I know some of the basics in animating objects in Unity. I know this will help a lot towards my game further down the line.
My Clock a little over halfway into making it

Comments

Popular posts from this blog

Unity Tutorial 01

Unity Logo - Source Having started with the three Unity tutorials I can say I am excited to delve further into game development over the next few weeks. The first tutorial is a bit slow and of course I sat there frustrated because I wanted to dive straight into making games but towards the end of the video it picks up a bit and we get into making basic hills on a blank terrain. In the second tutorial we get into using assets and adding texture on to the terrain. I found this simple enough and was happy to play around with the brush tools and the opacity and height to create different hills, and to smooth them out or make them jagged. I am already getting ideas for how I can use this in future projects/game worlds and I can see how they utilised it in mountainous areas in games such as Skyrim. It was nice to use the dirt and grass textures to add colour to the world, even though they were quite basic looking to what would be in a finished game. The third tutorial shows us how to w...

Wikipedia Trail, from Christopher Nolan to Intuition

by Friedrich Eduard Bilz dated 1894 - Source Today I followed a Wikipedia trail starting with a topic that we covered in college. I decided to start at Christopher Nolan 's Wikipedia page as we had watched scenes from Memento (2000), as part of our Digital Video Techniques. I am really fond of Christopher Nolan's work, and Memento  is a great movie but I particularly love The Dark Knight Trilogy  (2005-12) and Inception  (2010). His most recent film Dunkirk  (2017) is a cinematic masterpiece, and won Nolan the Academy Award for Best Director. In the article it mentioned how "Nolan's films are typically rooted in epistemological and metaphysical themes", and I decided to follow the link on the word " metaphysical ". Metaphysics is "the branch of philosophy that studies the essence of a thing" meaning it questions "being, becoming, existence and reality". The word Metaphysics comes from the Greek word meaning 'beyond nature...

Game Design

Cover of ' The Art of Computer Game Design ' by Chris Crawford, 1984 After finishing reading through the Reading Material for Week 2 I have learned some things I didn't know previously. For instance I did not know that the card game 'Magic: The Gathering' helped to " triple the size of the hobby games industry ". I also did not realise there was such thing as a cross between a LARP (Live Action Role-playing Game) and traditional theater, such as the play ' Tony & Tina's Wedding '. Reading through the articles made me realise that game design goes much further past the traditional board and card games and usual video games. I had heard about LARP and "Choose Your Own Ending" books, but they do not come to mind when you think about game design. I know that when it comes to creating my own game I will have to take different game types into consideration, and they could in turn become influences and inspirations for my own game...