Monday, 5 February 2018

Week 19

Week 19:

HND Project

After finishing the “Health System” last week, I decided to work on and expand the “Score System” by adding it to the HUD officially. To do this, I went into the HUD and dragged a “Text” box onto the screen. There, I type in “Score:” and then left it as that. I then dragged another “Text” box onto the screen and left it empty. This is what’ll display the score onto the screen.



I then wrote the following piece of coding to accompany it (See above). In effect, this’ll now display the score on the HUD and let the Player know how many points they have accumulated from killing Zombie AI. With that, I could then remove the “Print String” on the “Get Score” code on the “FirstPersonCharacter” graph. 



So… As of this moment, I have more-or-less created the barebones of a game. Obviously, I shall add to more to it because I still have several weeks left and Matt will be creating the levels. But what I’ve done is basically what you must do if you want to create a game at its most basic core. In fact, you could even say this game is Left 4 Dead--  Made by somebody who possesses basic knowledge and only some experience when it comes to using UE4.






I finished up with this week by creating a new “Boorlean” variable called “IsDead”. Using this, I incorporated into several pieces of my code, including; “HealthSystem”, “MovementInput”, and the “MouseInput” codes. Basically, this code will kick in when the Player dies and prevents them from moving afterwards.

No comments:

Post a Comment