Friday, 10 March 2017

Enemy Health System Preparation

To give more of a presence to our boss enemy, we are going to add an on screen health bar.

This is a progress bar menu widget linked to the health of the boss enemy.


And the code which reads the enemy health and feeds it to the bar.


This is extremely useful for not only enemy health bars but for the player as well.

Health, energy, rage can all be created in the same way.

This would be useful for creating a 2D fighting game. The two players health, and their special bars could all be done in this exact same way, shown on the screen.

No comments:

Post a Comment