Monday, 27 February 2017

Idea Generation for Computer Games - NPC implementation: Health System Preparation.

To begin setting up the NPC health, another float variable must be added to the blueprinting setup.
The float, titled Health was then linked to a widget which was set to display the boss name and health on screen upon triggering activation of the boss.
Within the widget is a progress bar, which has the percentage bound to a simple piece of code, in which the amount of health is reflected in the bar.

The colour of the bar can also be modified to change colour as the percentage decreases and/or increases, this is an added effect I have looked to add but it did not work as intended in my project, as the colour did not change, I will be looking to implement this again at a later date for extra visual emphasis.

Below the health bar can be seen in widget form, with the binding for the percentage and the colour set accordingly;


No comments:

Post a Comment