Unity Tutorial 10

 The game is actually fairly intensely good right now. there is a lot of UI elements that we need to add and that's what we're getting into today at least to begin with. So as of right now when the player misses his target he doesn't get a game over screen he that's to continue playing as if nothing has happened nothing is changed. so we're going to be looking into making UI elements and a game over screen that will restart the save from the beginning of the program. 

to do this we're going to be using a button which you haven't. Will do this with the reset button underneath the game over overlay to do this we're going to use a button and a game method called restart game it looks like this.... 

 

RestartGame() 

 

With this button we can reload the entire scene restarting the game. 

 

So the first thing you want to do when you get into unity is create a game over text mesh and set the text pro text to say game over. Customize it to the fonts you were using before and resize it so it looks OK to your preferences. Then disable this game object so the game will disappear from the scene. then we have to add our game over GUI and set the project to active and true and if you run a quick test you'll see that that came over text will appear while playing your game 

 

 

Then using the methods we learned last week we replaced our overlays under UI so that it would correspond well with our game over screen. 

this included going through our prefabs once again and primarily are bad prefabs because these are the ones that would trigger our game over screen to begin with. We did this using the following methods below. I struggle a lot with this one.  

 

 

So after this point we had the UI for the start and during an end of the game we need to make the game 100% playable. So we're going to be finishing up the start menu we need to have a title emphasizing the point and the name of the game and the menu so the player can select various difficulties to place that game also. 

 

Difficulties are important in games 'cause they allow better to experience the game in a way that they wish to if they want to more challenging and difficult experience they can pick hard or if they want to just sit down relax and not worry about anything else in the world they can pick easy and breeze through it normal medium between both. 

 

Comments

Popular posts from this blog

Unity Tutorial 08

Unity Tutorial 02