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

Introduction to a Future Game Developer & Film Producer

Introduction A photo of me taken by James Reynolds My name is Christopher Carney, and I'm an aspiring Creative Digital Media student hailing from IT Blanchardstown (soon to be one of three campuses as part of the Technological University of Dublin). I have interests in everything digital media from graphic design to filmography and everything in between. I'm a 'jack of all trades, master of none' who is constantly looking to challenge and better themselves, yearning to learn and gain experience in anything I can try my hand at. Education After I completed my leaving certificate in 2015 I went on to study in Dunboyne College of Further Education for two years. In my first year I studied Sound Engineering & Music Production at FETAC Level 5 in 2015. This was a fun and active year long course in which I expanded on my previous knowledge of music production, and learned a lot about sound engineering. We organised a gig that year as part of our course in whi

Game Brainstorm

Game Brainstorms Four types of games that I would like to possibly develop in the future. 1. First-Person Shooter Inspired by the likes of classic shooter games from Doom (1993) to Call of Duty 4: Modern Warfare (2007) I would like to create a simple First-Person Shooter (FPS) game. Having started our Unity tutorials in Week 2 and creating a simple environment to run around in I think it would be an interesting challenge. There are scripts and tutorials  (from none other than Jimmy Vegas himself) available online on how to make a FPS game. He goes in depth on how to make a basic shooter and I feel that if I was to watch his videos it would be possible to bring that knowledge into my own environment. The video series even goes as far as to create spider enemies  that you can shoot in game. My overall idea would be to create a presentable and fully working level where you have to shoot all of the spiders to complete the level. I would also be thinking that I could have five &quo

Game Vision Statement

The purpose of this blog post is to create a vision statement for my game, so I can lay out my vision in sufficient detail to implement it. Skeleton Quest  is a first person adventure game made with the Unity 3D engine. You play as the hero Stephen, exploring the vast open world and fighting skeletons and spiders as you collect gems in your quest to clear the world of the undead. It is the second idea in this previous blog post . Genre:  First-Person Adventure Platform: Windows, Mac and Linux. The game will be playable with a keyboard and mouse, with possible adaptation for an Xbox One controller in the future. Gameplay: The game will handle similarly to other first person games like Skyrim, Fallout or Call of Duty. The player will have an open world in which to explore and collect a number of gems to complete the game. The game and controls will be thought to the player through pop up messages. To challenge the player they will need to explore the open world and go th