Started off by briefly going over how to create UI in Unity
everything must use a Canvas game object
right click in hierarchy, go to UI - if you don't already have a canvas it will create one for you
render mode (under canvas game object) is how the UI is added to the scene
under canvas scalar > scale mode, you can change the size of the UI menu
actual text scripts such as health must be added to it
To get the health bar, create a slider UI and disable handle. Need to set a reference to the slider in the health/damage script.
After that, we moved on to continuing work on Brief 3.
I'm trying to get the player to collect the keys as they're picked up. So far, the key GameObject disappears but there is nothing recording that the player collected it. I wanted to use the XP script from Brief 1 to create a function for that, but I couldn't figure out how to rewrite the code to fit my purpose. I thought that if I added the right script, I could go back and change the terms a bit to fit my project, but I'm still having a hard time reading code. Additionally, when I tried to get the Health slider to display accurately (i.e. filling the bar completely when health is full, and being completely empty when the player 'dies'). I was able to get it to be full by increasing the width of the bar fill, but this prevented it from depleting to nothing. The corresponding slider value would still go down to zero, but the display was off.
I'm getting much better at keeping track of my progress as I work on assignments.
Video tutorial to create a functioning health bar
Reflection:
how did i feel
my thoughts on the project