Within the function itself, the maximum energy and amount restored in each chunk are set, this is then referred to by a custom event in the Character blueprint which sets the energy restoration speed, this is the speed at which the set amount of health is restored.
A stop on the regeneration is then implemented within the character blueprint, via a branch set so that the regen cannot occur whilst the player is attacking.
Below is a short clip of my energy bar setup, showing the restorative effect upon the use of a special attack through the heads up display in the lower left corner (The creation of which is elaborated on in the following post.);
No comments:
Post a Comment