Unreal Engine 5 - How to create a Health, Mana and Stamina bars

  Рет қаралды 3,997

Unreal By Yourself

Unreal By Yourself

Күн бұрын

I'm going to be showing you how to create a dynamic health, mana and stamina bar in Unreal Engine 5. You can easily expand and customize for your need.
00:00 - Intro
01:30 - Adding Arrow Component
02:00 - Create variables
04:45 - Event Any Damage
05:40 - Create Health Regen Logic
08:48 - Create Mana Action Logic
14:33 - Create Mana Regen Logic
17:32 - Create Widget Not Enough Mana
19:45 - Create Sprint Action Logic
23:30 - Create Drain Stamina Logic
27:45 - Create Stamina Regen
32:04 - Create Hud Widget BP
36:37 - Health Binding (Hud Widget BP)
38:23 - Mana Binding (Hud Widget BP)
39:08 - Stamina Binding (Hud Widget BP)
40:10 - Event Begin Play (Third Person Character)
41:22 - Fixing the Less or Equal to Greater or Equal
42:15 - Collision Box (to test Health Logic)
47:48 - Adding Numbers to Progress bars (Hud Widget BP)
54:55 - Stamina Drain when Jumping
If you learn something new, please like and subscribe.
Below, it the following tools that I use to create the video at no cost
Recording Program/ Enregistrement Gratuit
obsproject.com/
Video Editor Program/ Éditeur de vidéo gratuit
www.shotcut.org/
---------------------------------------------------------------------------
This is Unreal Engine, the best, in my opinion to create video, editing program, the game engine to create games, to creatively increase your knowledge, that keep you entertain at all time, with a lot of resources to help you out at anything and at anytime, creating games such as shooter, platformer, puzzle, racing and more, to create any video, cinematic and others. Don't heisted to try it out and the reward of perseverance to learn will be rewarding in the most satisfying way you can or cannot imagine. Keep the good word and create the best game of all time that will impact the world!
C'est Unreal Engine, le meilleur, à mon avis, pour créer des vidéos, un programme d'édition, le moteur de jeu pour créer des jeux, pour augmenter de manière créative vos connaissances, qui vous divertissent à tout moment, avec beaucoup de ressources pour vous aider à tout moment, créer des jeux tels que des jeux de tir, de plateforme, de puzzle, de course et plus encore, pour créer n'importe quelle vidéo, cinématique et autres. N'hésitez pas à l'essayer et la récompense de la persévérance à apprendre sera gratifiante de la manière la plus satisfaisante que vous puissiez ou ne pouvez pas imaginer. Gardez le bon travail et créez le meilleur jeu de tous les temps qui aura un impact sur le monde !

Пікірлер: 21
@SirAcidFate
@SirAcidFate Жыл бұрын
I love this video! It's very easy to follow, especially for me just discovering UE5! I've always wanted to build my own game(s).
@UnrealByYourself
@UnrealByYourself Жыл бұрын
Thanks, this is an easy way but there is a better way of doing it using a Dispatcher Event. You can take a look at my other video for more details. Both works great, however, this video take more resources on your PC than the Dispatcher method.
@SirAcidFate
@SirAcidFate Жыл бұрын
@Unreal By Yourself I'm having trouble with the emitter animation, I chose the "sparks" emitter animation and it doesn't stop. Do I need to add another event to stop the emitter animation?
@MidnightTheFolf
@MidnightTheFolf Жыл бұрын
This helped a lot, and works with everything else I have, though when I'm not moving and I hold shift I still use stamina, if there's a fix for this, please let me know
@loqie1349
@loqie1349 Жыл бұрын
Thanks a lot man!
@UnrealByYourself
@UnrealByYourself Жыл бұрын
Your welcome
@ChronoSphinx
@ChronoSphinx 7 ай бұрын
for those who have an issue with mana regen after the condition is true, its stuck at true so you have to end it by a delay of 0.1 sec then connect it to regen mana
@MaxStudioCG2023
@MaxStudioCG2023 2 жыл бұрын
realy nice ...good beginers explaining :D ...i did it ...will be nice to implement on this (as a continue tutorial ) ....like when casting the spell for example the character to play a certain animation (starter pack have few free animations) if you want make a tutorial ...much apreciated :X ty for sharing this too
@UnrealByYourself
@UnrealByYourself 2 жыл бұрын
Yes, this is something I'm thinking to do.
@Phoenix4_Trade
@Phoenix4_Trade 2 жыл бұрын
You great
@UnrealByYourself
@UnrealByYourself 2 жыл бұрын
Thanks! :)
@gabrielpereyra6759
@gabrielpereyra6759 10 ай бұрын
This was a great tutorial, thank you. One thing I'm struggling with is adding a delay to the regen. If I cast a spell, or run and stop, or jump, the regen persists. If I add a delay to the regen, it seems to only take effect the first time, then every so often after that but it isn't consistent.
@UnrealByYourself
@UnrealByYourself 10 ай бұрын
Without seeing the code, it hard to find the error or what does or does not trigger. You could use the do once node to fix the draining when your action is completed. Example; when jumping, the "drain event" get called but does not stop after you landed. By using the do once node, you could tell the "drain event" to perform the action only once each time.
@gabrielpereyra6759
@gabrielpereyra6759 10 ай бұрын
@@UnrealByYourself it was exactly as you had in the video, but I ended up fixing it! Thank you 😊
@UnrealByYourself
@UnrealByYourself 10 ай бұрын
@@gabrielpereyra6759 great to hear. What is your solution?
@gabrielpereyra6759
@gabrielpereyra6759 10 ай бұрын
I used timers so that whenever i would use mana or stamina there would be a 3 sec initial start delay before the regen custom event kicked in@@UnrealByYourself
@ByKakashi
@ByKakashi 7 ай бұрын
showing this one i am getting confued planar reflection requres flobal clip plame project setting enanbled to work properly and event begain play is not open and if i try to do by duplicated it showing like custom event
@MaxStudioCG2023
@MaxStudioCG2023 2 жыл бұрын
also ataching a gun and shoot and take damage from AI(a short ai that shoots at you) and eventualy die :)) (with the proper animations ofc for shoot (holding the gun) ....(starter pack is free and have them all) ...if you want make a tutorial for us :D thx (another tutorial :D)
@UnrealByYourself
@UnrealByYourself 2 жыл бұрын
Ill see what I can do on this topic.
@ithilien8103
@ithilien8103 Жыл бұрын
The mana regen does NOT work. If you wait for 100 mana and then use spells and hit 0 mana, it stops regenerating.
Unreal Engine 5 - How stylized Progress Bar works
9:25
Unreal By Yourself
Рет қаралды 2,5 М.
UE 5.1 - Vehicle Movement (8 Wheels, Turret, Headlights, Brake Lights)
1:15:47
Unreal By Yourself
Рет қаралды 1,6 М.
How to Make a Blood Splatter Effect on Screen in Unreal Engine 5
9:33
Free LOOK Camera Around the Player - Part 1 Unreal Engine 5.1
9:40
Unreal By Yourself
Рет қаралды 3,3 М.
37.exe - The MOST INSANE Gdi Malware
13:50
WindowsDestroyer
Рет қаралды 253
Vehicle Headlight, Brakes and Spotlight - Part 3 Unreal Engine5.1
38:24
Unreal By Yourself
Рет қаралды 2,4 М.
How to turn UNITS into NANITES | No Man's Sky 2024
4:20
Caster Penn
Рет қаралды 1,1 М.
She guess best choice of sweets from her boyfriend 😋😅😎
0:29
WORLD'S SHORTEST WOMAN
0:58
Stokes Twins
Рет қаралды 128 МЛН
Don´t WASTE FOOD pt.4 🍜
0:20
LosWagners ENG
Рет қаралды 13 МЛН