Monday, 14 May 2018

Week 32

This week is the one from last week of me working on my project, What I wanted to do this week was make a kill counter, an enemies alive counter and a health pack so that when you run underneath the health sign it heals you back to full.

Lets start with the health package.

The first thing I did was design the health sign to go on to float in the air and make it bright enough so you spotted it and noticed it, I feel I did that pretty well.
The next thing I did was add the trigger box underneath it so that when you step under it it gives you 100 health back, Here is the code that does this, it is actually really really easy to do.

Next I moved on to the Kill counter and the Enemies Alive counter.
The first thing I did was choose where I wanted to position it on the screen, I chose just below top left, so it is easily visible to the player when they are playing. The next thing I will show you is the Spaghetti code that adds a kill to the counter upon a death of the enemy, and also takes one off the opponents alive counter.
And finally this is it in game, it starts with 67 alive as that is how many opponents there is on the map. What I plan to do next week to finish the project off is to make it so when the Enemies Alive goes to 0 it says "YOU WIN" on screen.

No comments:

Post a Comment