Thursday, October 10, 2019

My First Game Design: Unity Tutorial 02

Image from Pexels

This week we had two more unity Tutorials to watch and follow along with. The first was 20 minutes and the second was 16 minutes. These video carry on from the three video tutorials from last week.

The first video begins by showing you how to put sounds into the game and assign them to an object. Using script the video also shows how to make sure that the sound doesn't play on a loop as soon as the game starts and instead only plays when the character collects the gem/object. The tutorial then shows you how to place a box collider around your gem and make it whatever size you need to fit it around the gem.

After that the video moves on briefly to explaining how to add water into your game so that you can make a little lake if you want, to do this lower part of the terrain and then using the water asset that comes in unity to fill the dip in the terrain and create a small lake.

In the last part of the tutorial we are shown how to add more realistic textures to the game by creating a wall using a cube and scaling it into a wall and adding brick textures. The video then explains how to make the texture look less gritty and finally before the end of the game we are shown quickly how to add shadows into your game.

In the first few minutes of the second video we are shown how to create a cursor so that the player can always see where the characters focus is on the screen. This is done by creating a canvas and then scaling it down to an appropriate size on the screen, the canvas can have textures and colours added to it depending on what type of game you're creating.

The rest of the tutorial is dedicated to breaking down and explaining Raycasting or Playercasting. The video breaks down the beginning of the code that is needed for Raycasting. Raycasting is a way of defining how far away an object is from the object it's looking at, for example how far away a character is from the wall they're looking at.

This weeks tutorials were very interesting if not a little bit harder to follow then last weeks. hopefully next weeks videos will be just as interesting.

No comments:

Post a Comment