Skip to main content

Unity Tutorial 02

A screenshot of Unity3D

While watching the two tutorials to adding some codes and explaining how and what is it for. I know how to add in the sound and making the gem disappeared, water and the ray cast to Unity3D. 


Adding the sound and making the gem disappeared, you need to add codes into your GemRotate scripts. The code for that would be "public AudioSource CollectSound; public GameObject TheGem;", this will tell unity and this is the sound for the gem. To make the gem disappeared when the player hits it is "void OnTriggerEnter(Collider other)" and if you want as soon as the player hits the gem to make a sound you gonna add in as few more codes underneath that code. At first I had a problem with it because I didn't realised I typed something wrong, also recheck and reread what you are typing. 

Once I got all the codes and followed the tutorials, I tested it out playing it in first person POV. I thought it was so cool how it disappeared and I didn't expect to it work. The sound was loud for me so I changed the setting of the sound that I saved in Sound -> FX -> Ding001.

Making the wall that was easy enough, all we had to do was change the size and to do that is to change X,Y and Z. Once, you change the size of the cube you had before, you just duplicate and move it to make it looks like a wall.

Adding the water, cursor and ray cast was pretty easy since I had the tutorial to follow but I know for sure if I don't have these tutorials to help me I probably be so lost and won't even use Unity in the first day of getting it. Water was simple because all you want to do was make a dip and add in the water assets that had for use to download from their website.

Having a cursor is useful to see what the player is looking, we didn't have it before but it was okay. You had an idea where the player was looking but having the cursor you know exactly where the player was looking at. Ray casting was done mostly on script. Adding in ray cast needs longer coding than what we done for the gem.  Ray casting is just to see the distance between you and something for example a wall. If you wanted to know what is the distance between you and a wall, having ray casting would let you know the distance. Ray cast was a little more difficult than the others but it wasn't that bad.

What I am looking forward to is to learn more about the tools and techniques we can use in Unity but at the same time I am nervous because I know it will be difficult at some stage. Hopefully, I will use something I learned today for my game assignment.

Comments

  1. Great to see your enjoying using Unity, like most things the more you use it the easier it will become - keep practicing and if you want some additional tutorials give me a shout!

    ReplyDelete

Post a Comment

Popular posts from this blog

Unity Free Tutorials

For now on unity tutorials will be about what I am going to add in for my game. Watching tutorials video will help me create the game I want to make.  I already have a problem with my menu page. I follow everything from the video but it says I have an error. This is one of the reasons why I don't want to become a game designer.  I don't like coding, it just confusing and I don't really get what is going on but hopefully, over time I know the basic coding. The video below, I had a problem adding in the TextMesh Pro. TextMesh Pro is just making the text clearer. Since I am having a problem with add that in I decided to leave it out. Other than that, the tutorial helped. This was another tutorial video I watched.

Multimedia Project Presentation

Today we presented our game 'Tiny Farm' to our year and we got the chance to look at all the other game that was made for this module. The first game I saw was Rob's game 'Monster Flip'. His game was a puzzle game, it has three different levels. when you click on one of the puzzle pieces it will rotate. You have to click the piece until it is in the right position. After you finished the level you can go back to the menu page and click on the next level. I like that the game is for kids who have autism. I enjoy playing this game because it was simple and easy to play. The next game I saw was Darragh's game 'Alien Twine Game'. His game was a story adventure game. It tells a story and you get to choose which option you would like to pick. Each option will bring you to a certain route, it depends on what and which option you pick. I enjoy playing this game because it was fun and interesting to see where you will end up at the end of the story. Battle ...

Game GDD

The articles I read was  Design Considerations  by Greg Aleknevicus,  Prototying  and  Generating Ideas . The articles talks about what a publishers can do to improve a game that does involve spending money on that maybe be worth it. The articles basically tells us that it is important to show the designers where the game is heading. They are a rough example of what the designer is planning on doing with their game to look like and it's about getting the main idea of the game across. Prototypes are used to test something out, so in this case the prototype is to test out the gameplay. Testing the game will give the designer ideas on what needs to be added or take away from the game. When designing games we must come up with the idea. It can be a basic concept idea and not fully formed.  Designing a game, we need to know what rules or system, materials , narrative and market research and ask yourself these questions What game rules led to when test...