Day 9

Ill be honest and say I was a little lost today. I’m not sure if its just because I am so tired from work, or because I was unable to really focus and the code was looking like something out of the Matrix… Probably a bit of both I would think. So today I was trying to get through several segments and had a confidence coming out of yesterdays coding progress. I guess that’s part of what makes this program so challenging is just when you think you got the hang of it, they throw you a curve ball. I am sure with some time my brain will be thinking in code and how to problem solve, but today the engine was overheating to say the least lol. I started off working on the UI(User Interface) which is programing and logic that allows the User to interact with the game. Such as what happens when the game is over? How do we know that the game has ended? Can I restart? If so how do I do that?

Well in order to do that, we have to first create the variables for each of those instances. Sometimes that means we need a physical game object, and other times it means we need to create a method to enact said game object. I was struggling through this whole section because I could not wrap my head around all my scripts and where to start. I also learned today that I need to get a lot better at how to research things. I keep asking the obvious question like “How do I make my words flash in Unity?” when I should be asking “How to activate and Deactivate text in Unity?” These subtle differences can be a literal game changer on how fast you find the information and if its the right information. Needless to say I was able to figure out some of the coding for making my “Game Over” turn on and off, and then even made my “Press ‘R’ Key to Restart” flash on and off by making it a child of the “Game Over” Coroutine. This means any time the GameOverCoroutine is running so will my player restart text. Hopefully I did not jump the gun on that and when I learn how to work with the Game Manager tomorrow it will not negatively interfere. Only time will tell!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store