Lives and Health bars.


I have been working on putting lives and health bars into my game though game maker. Firstly I did the health bar. I did this by creating a health bar by setting "health" to 100 and by using the draw even and action to make the health appear on the screen.






I then went onto making the health bar go down a value of two each second, this makes the player rush as they are under pressure. When the health bar goes down to zero, the game changes room to the game over the room.






I also did a similar thing with lives. Each time the enemy hit the player it reset the both of them and takes one of the player's lives.








Comments