Monday, 16 April 2018

Week 28

Week 28:

HND Project:

This week I decided to expand upon the HUD a bit more. I decided that when the Player dies the HUD would disappear and then reappear when the Player respawns. To do this, I clicked on the “Behaviour” and pressed “Binding” on the “Visibility”, which then brought me to a new “Graph”. I then wrote the following code, which basically means, that when the Player dies the HUD (aka, Crosshair) will disappear.



I also decided to create a game over screen for the HUD. To do this, I dragged a “Text” onto the screen then typed in “Your Dead” and made it invisible in the “Behaviour”. After that, I then I clicked on the “Behaviour” and pressed “Binding” on the “Invisibility”, which then brought me to a new “Graph”. Afterwards, I copied the above coding and pasted it onto the “Your Dead” graph and changed it so it wasn’t “True” but “False” and that’d be “Visible” when the Player gets killed by the enemy Zombie AI.



The following results look like this on screen;



No comments:

Post a Comment