Thursday, March 9, 2017

Day 23

Today I worked more on the zombie shooter game.

I changed the color of the bar and made it decrease every time I got hit until i reached 0.

So I made the value of the health bar 100 and we will modify this value through a script that will decrease  the length everytime the player health decreases.

Unfortunately the script was already premade by the people who made the tutorial so I didn't get to write it. So I put the script on the player and dragged all of the health slider on him. 

After this I personally modified some stuff that made the health bar look better because preciously health bar wouldn't be completely depleted when so I just added a line of code that made the health bar deactivate when the health is 0.

This is how it looks so far.

Tomorrow I'm thinking of starting something new and ditching this tutorial because I'm not really learning much by doing this.

No comments:

Post a Comment