Unity Tutorial 03

 

 Unity Tutorial 03

For the third Unity tutorial I was challenged with making a Birdseye view game where the player can only move side to side and they have the ability to throw food at oncoming animals. Making this game was quite fun I will admit, Playing games pretty much my whole life I sometimes wondered how certain things were done or why they might of been done, for example objects deleting when you cant see them. This was one of the things that was added to this game and its for a very good reason. When the game was first set up the food would just keep going forwards in the scene although the player could not see it, this can cause quite the problem in gaming. Not having assets delete or de-spawn. when they are not needed means that the game has them still loaded therefor more work on the users system to keep the game running smoothly. To fix this issue I had to to add some scripts to delete the objects once they passed a certain point. This was added to both the food and the animals as they were both resulting in the same problem. 


Movement speed of these animals and the speed in which the food was thrown was something I was also editing with. These were needed to be adjusted so that each of the animals were going at different speeds. This is something I feel  like I can implement into my game as the player will be forced to keep moving without any way of stopping it. It can also be used for some moving obstacles that may be in some of the levels. These obstacles will be using similar random number generator scrips as used in this tutorial so that they player cant predict the next obstacle they encounter.

 

 

This is an image showing off the game and some of the scripting for the destroy out of bounds script.

Comments

Popular Posts