In addition to the health and energy bars within the UI, I have created a rage bar (Note the final product is not currently in use due to a design decision). This bar is set up somewhat like the health bar, however when attacks hit the player, rage is gained as opposed to lost.
Another difference between the two is that the bar fills from a central position, and not from the left hand side.
The damage dealing nodes within the script have a woven in "Get Rage" node, which call to a custom event that controls the Rage. The custom event itself decides how much damage is taken, in comparison to how much rage is received.
Below is a shot of a section of code, from the character blueprint, referring to the 'get rage' node and custom event;
The UI was all fairly straight forward apart from one minor hitch in the process that I should have noticed was wrongly placed sooner than I actually did, other than this though, the widget setup was simple and I had no other problems with the setup.

No comments:
Post a Comment