Thursday, November 7, 2019

My First Game Design: Unity Tutorial 05

Image from Wikimedia Commons

This week there are three more video tutorials to watch and follow along to. As per usual these video tutorials carry on from last weeks tutorials. The first tutorial this week looked into the skybox, more lighting and wind zones.

The skybox is what the player sees in the sky of the environment however you can get different skyboxes in the asset store and there are plenty of free ones for people on a budget like me.

To apply the new skybox to your environment you have to import the new skybox into unity and then go to window in your tool bar, lighting and then settings. Here you can add any number of materials to your skybox including your newly downloaded skybox.

In this settings panel you can also begin to change your lighting by changing the brightness and also the colour of the lighting. You can continue to mess around with the lighting of your scene by changing the source of the lighting and the intensity, doing this you can create a dark or light scene.

Next it is shown how to place a wind zone into the environment, which is as simple as placing an object into the game and this immediately begins to effect the trees in the environment however the grass works off of a different source. Keeping the frequency of the wind low tends to be more realistic.

In the second tutorial it shows you how to pick up your weapon instead of just starting with it using a C# script again and how to create fade screens.

To have your character pick up the weapon you place a fake weapon in the environment and make it so that you cannot see the weapon in the characters hand until you take the weapon from the environment, it uses some similar code as the collect gem script with a little more added in to pick up the weapon.

Creating a fade screen uses a mix of animation and C# scripting to make sure the screen doesn't just stay the one colour and does indeed fade into or out of the game. A fade screen can last for as long as you would like.

In the final tutorial we went through all the things we had done up till now to work out any bugs that may have arisen while creating the game and adding more environment to the game such as a house and some bushes to go with the trees.

Placing the house in the game is simple enough, download one from the assets store then simply import it into your game where you can then change its size, colour and other things.

In the next tutorial we are going to find out how to create the inside of the house that we placed in the game.



No comments:

Post a Comment