Monday, 27 February 2017

Idea Generation for Computer Games - Energy Regeneration.

To implement a proper health and energy setup into my character, I needed to add in another set of functions, the first of which was designated to the restoration of energy following special combo attacks which use up energy.
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