Understanding progress bars
One of the ways that video games can represent character stats such as health, stamina, and more is through Progress Bars, which are what we’ll use to communicate to the player how much health their character has. Essentially, progress bars are a shape, usually rectangular, that can be filled and emptied in order to show the player how a specific stat is progressing. If you want to show the player that their character’s health is only half its maximum value, you could do this by showing the progress bar as half full. In this section, that is exactly what we’ll be doing. This progress bar will be the only element in our Dodgeball game’s HUD.
In order to create this Health Bar progress bar, first, we’ll need to create our HUD widget. Open the editor, go to the ThirdPersonCPP
-> Blueprints
directory inside the Content Browser section, and right-click to create a new Widget Blueprint
class from the User Interface
category...