This video shows you how to create a health bar widget and implementing the damage and the healing system to increase/decrease the value of health bar.
Used engine version is UE 5.1.0.
[Chapters]
00:00 Introduction & Demo of the completed one
02:39 (Preparation) Moving the postion of Time-Display widget
Widget for the health bar and text
03:52 Creating a widget for the health bar and text (Designer)
12:10 Implementation of logic for the widget (Graph)
16:36 Showing the widget of health bar
18:43 Test play for checking the widget of health bar & text
Damage when the collision with the deer
19:22 Applying the damage when the player collides with the deer
21:49 Handling the damage applied and reflecting it to the widget of health bar and text
29:26 Procedure when the player is dead
32:31 Initialization procedure to set the current health
33:39 Test play for checking the damage handling when the collision with the deer
35:25 Test play for checking the behavior of death
Damage by PainCausingVolume
36:48 Adding PainCausingVolume
38:48 Procedure when the player goes inside the area of PainCausingVolume
43:26 Test play for checking PainCausingVolume
44:46 2nd test play for checking PainCausingVolume
Healing System
47:01 Creating an action mapping for the rest
48:10 Implementation of healing system
58:08 Final test play to check all functions implemented
Sound effects used in this video are downloaded from the following site.
https://soundeffect-lab.info/
All development recordings until this video.
• Unreal Engine