Тёмный

How To Damage And Heal The Player In Unreal Engine 5 (Tutorial) 

Matt Aspland
Подписаться 83 тыс.
Просмотров 59 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@kevinhocking3531
@kevinhocking3531 Год назад
Thank you for sharing these techniques with everyone,, your videos and tutorials keep me from tearing my hair out when working UE5 😂. We appreciate the hard work brother!!
@wolfiedgr8t
@wolfiedgr8t 2 года назад
Cheers Matt, looking forward to the next video 😎
@nemesisgs2
@nemesisgs2 2 года назад
09:38 To convert "Random Float in Range" into an integer... I added a fceil (Ceil Node) in between the 'Return Value' and 'Base Damage.' This rounds up to the next whole number
@LegendJ0e4
@LegendJ0e4 2 месяца назад
do you know why my player character takes damage even when games started and i've not been in melee range of enemies? or when enemy die after attacking me i still take some damage..
@ORANOID
@ORANOID 2 года назад
I know, what you can do about the poll, that you did a few days later. Even if you wouldn't include more personality into every video, you can in matt plays your games and defenetly in community game (if it is still in development). I am a bit sad because of the poll results. You are doing really great and I would love to know you a bit closer. Btw tomorrow is my birthday and English exams. You can wish me luck or happy birthday.
@MattAspland
@MattAspland 2 года назад
Great thinking, thanks mate. Happy birthday and best of luck with your exams too!! :)
@ORANOID
@ORANOID 2 года назад
@@MattAspland thank you.
@cryofravenia
@cryofravenia 2 года назад
You have to make an updated tutorial for FALL DAMAGE. That would be awesome. Waiting for it :)
@SirStazey
@SirStazey Год назад
I’m having a issue with the block actually killing my actor, what could be the reason for this
@Panic.official
@Panic.official Год назад
Hi Matt, sorry to bother you but me and a few other guys here can't get the Health Widget Ref to connect to the Set health. Do you know how to fix that and can you help???
@leejay_0939
@leejay_0939 Год назад
Did you ever figure a solution?
@JHinsonMusic
@JHinsonMusic Год назад
Same here.
@andrewjwhitus
@andrewjwhitus Год назад
same...
@mrSleepyguy1
@mrSleepyguy1 Год назад
This is a little late but I guess maybe itll be useful to people later on but in order to get the set health with the target input, you just need to drag the pin off the widget reference and then look for "Set Health". Thatll give you the Set Health with the reference as the target.
@MartKart8
@MartKart8 2 года назад
It took me ages to get the healing system to work correctly, when taking damage from a Guardian beam attack, and Guardian Sky Watcher.
@AliB0n
@AliB0n 2 года назад
I cant connect the health widget to the set health, has this been changed in updates or have I missed something?
@itzJeyz
@itzJeyz 2 года назад
did you get this working?
@Panic.official
@Panic.official Год назад
yeah did you manage to fix that? Same problem for me.....
@buennyo
@buennyo 2 года назад
Thank you so much for the video!
@speedwaylabsdev
@speedwaylabsdev 2 года назад
Hi Matt, I love your videos. If you need any ideas, I would love to see a tutorial where a player enters a multiplayer server, then selects the game mode, or pawn they would like to possess. For example, I'd like players to be able to select the 3rd person game mode or advanced vehicle gamemode upon entering the server.
@artdrawing6682
@artdrawing6682 Год назад
nice totorial that is easy and clean thank you
@staccatic
@staccatic 5 месяцев назад
Good tut, though using component overlap causes the enemy to damage itself because it's hitbox and model overlap.
@hoigaming90
@hoigaming90 Год назад
Hi, can u make a video about health regen like... when you are NOT received any Damage in a period of time, then you will get Health Regen overtime
@sam-nw6vy
@sam-nw6vy 7 месяцев назад
it only works once, do u know how to do it every time i go on the cube?
@DarthTaterz7
@DarthTaterz7 Год назад
Hi im not sure if I missed an episode but im not sure how to set up a damageBP HELP??
@studiobaxter1242
@studiobaxter1242 Год назад
fantastic, thank you.
@LordRage469
@LordRage469 7 месяцев назад
As far as the healing there was no health widget ref not sure when you made that. Must of been in the video at the end when you said it wasn't needed unless you play mobile or lower end pc. So i skipped it. Might be worth mentioning. I tried to make a reference to the widget but appears just leaving it out works just fine.
@darkuskain
@darkuskain 10 месяцев назад
Hi Matt. Quick question! I've followed the tutorial and it works great. The only thing is, when i press "1" i heal fully instead of healing bit by bit. Have i missed something painfully obvious? Thank you!
@alexleveldesign
@alexleveldesign 2 года назад
Any suggestion on could it be the damage overtime working ? like a poison affecting the player or stepping on lava kind of things
@WesleyVanroose
@WesleyVanroose 7 месяцев назад
So how would you use a game instance with this? Because I try to make the health information come with me to the next level.
@derf0007
@derf0007 Год назад
Hello, I have a question maybe you can help. After I added the dodge roll from your tutorial my character only faces forwards afterward. When he runs is only shows the forward animation even when he is moving side to side and backwards. He can still jump and roll, the only thing is his direction animation remains forward when running. Prior to doing a roll he runs fine and can faces all directions.
@HaikuTutorials
@HaikuTutorials Год назад
Really nice tutorial. I wonder, is it the same process for Unreal Engine 4?
@MattAspland
@MattAspland Год назад
It is indeed
@HaikuTutorials
@HaikuTutorials Год назад
@@MattAspland Awesome, thanks mate :)
@studiodenne
@studiodenne 9 месяцев назад
Hi, Thanks for this tutorial, all works fine with one problem. When I get damage, I´m also get onehited. I´ve checked the code 100times, I changed the numbers, but always the same. Anyone an Idea? Thank you
@maximfedr
@maximfedr Год назад
How to make it so that when you move to a new level, health remains at 50 percent, and not 100?
@michaeltazor
@michaeltazor 10 месяцев назад
I never have have health widget ref for the damage system, i tried like 10 times, also i tried many other tutorials on youtube and it always ends up with the meter don't want to move anything, even i try 10 times, I'm using unreal engine 5.3, Would it be cause the engine update that the engine is changed ?
@عليالعبادي-ه9ق
@عليالعبادي-ه9ق Год назад
Thank you
@nasrali1297
@nasrali1297 Год назад
Hi Matt, hope all is well. I am trying to decrease my player health gradually once seen by AI and I am having issues trying to apply the damage node. Any idea what should be in the player BP and in the AI BP. Appreciate your usual support and thanks in advance!
@3BEEZ
@3BEEZ Год назад
Can we have an update on how to apply damage within the Lyra Game?
@ZimMabu_GameDev.
@ZimMabu_GameDev. 10 месяцев назад
Thankya bra
@jasminerojas553
@jasminerojas553 9 месяцев назад
5:03 My health node doesnt have a target option. Is there a way to add the Target option?
@LegendJ0e4
@LegendJ0e4 2 месяца назад
did you ever fix this?
@jasminerojas553
@jasminerojas553 2 месяца назад
@@LegendJ0e4 Yes. When you right click, turn off context sensitive. Another Set Health option will appear and use that one.
@LegendJ0e4
@LegendJ0e4 2 месяца назад
@@jasminerojas553 i have a new problem lol, where my player health keeps decreasing even when far away from any enemies... did you encounter this?
@jasminerojas553
@jasminerojas553 2 месяца назад
@@LegendJ0e4 No I didnt use enemies in my game. Just some acid puddle traps. but I can guess that your problem might be because of your enemy damage is connected directly to your health... Can't really say how to solve w/o seeing the BP first.
@LegendJ0e4
@LegendJ0e4 2 месяца назад
do you know why my player character takes damage even when games started and i've not been in melee range of enemies? or when enemy die after attacking me i still take some damage..
@TaiFails_
@TaiFails_ 9 месяцев назад
can i do this in the player controller?? thx
@diogogomes06
@diogogomes06 6 месяцев назад
10:43
@MartKart8
@MartKart8 2 года назад
I feel one of the most important features of a game is, for example when it has multiple levels and the game requires you to have a set number of items to progress, say in Diddy Kong Racing the character needs a set number of balloons to open new doors. I followed your video called Save & Load Game (Statistics, Location & More) - Unreal Engine 4 Tutorial. I'm struggling with being able to save coins or rings for my character, if I load the saved level, I'm able to save the number of hearts, if I took damage working only. I feel I'm unable to call the function for my pickups to collect coins/rings
@PRiMezGFX
@PRiMezGFX 2 года назад
Are you wanting to carry items over to other levels? If so look at game instances. Game instances are a great way of carrying values to other levels. Hope that helps :)
@MartKart8
@MartKart8 2 года назад
@@PRiMezGFX Yes I don't know if you'll see this response as half my replies seem to turn invisible or don't seem to get posted back. I've looked on Tutorials on RU-vid, they all say to use a Save Game and very few used a Game Instances as well, the methods on making this were all so different after that. One thing I'm finding frustrating is some creators are skipping chucks of information out, they don't explain how they connect information to other blueprints, I have learning difficulties and Autism. By the way a RU-vid creator called MatDevelop said to me they will do a video on this subject as part of their GTA series, They do have an idea how to do this, but explaining this would not be possible. The person helped me out once, by showing me to use a BlendSpace 1D for Crouching and Swimming , being connected to walking and idle state, it helped stop my character from going into the crouch when swimming.
@PRiMezGFX
@PRiMezGFX 2 года назад
@@MartKart8 Hi Martin, I totally understand what you mean. There are some content creators out there who skip large part of important info. Most tutorials now days are people just showing you what nodes connect to other nodes and dont actually tell you the why. (This isn't a dig at Matt just at some tutorials or teachers in general. I believe there need to be more tutorials where the person goes into detail on some of the nodes (doesn't need to be all). It gets hard sometimes Martin but your doing a great job seeking out the information and asking for help. A good place to go when you get stuck is the 'Unreal engine documentation'. You can search for nodes and it tells you their purpose. Hope this helps you in some way.
@MartKart8
@MartKart8 2 года назад
@@PRiMezGFX I've tried to look up the documentation before, I found it very complexed, I find a lot of the information went into coding that needs to be hand written down. finding info on 4.25 is tricky as the website wants to show documentation for 4.26, 4.27 and 5. I stumbled on a tutorial yesterday called " Coin Collection Counter Game Instance" it's made by someone called "Victor Burgos Games", made in version 4.12.5. The person doesn't skip any information out. looks like the person stopped making tutorials 1 year ago though. The person went into creating a Game Instance and made a coin-ish collectable Blueprint and going into a new map, I've almost got it working the exact same way apart from it seems to add 1 extra coin to my total when I switch maps. I need to figure out how to save this with my save game object, combine the 2 together.
@MartKart8
@MartKart8 2 года назад
I checked again seems my coins are working correctly, seems extra coins are only added because I created a function in my Cat character (I created in Blender), Right mouse Button, is set to open level. I have a proper level end and level Entry I made and they work and no extra coins are added.
@davidmg512
@davidmg512 Год назад
Health bar only updates when it goes to 0 :(
@perliczka336
@perliczka336 2 года назад
I can't edit cube.
@samuraiyt4453
@samuraiyt4453 2 года назад
Saw the overview and looks useful! 😁
@Skeltcher
@Skeltcher 2 года назад
How do I make a cube heal the player instead of damaging it?
@studiobaxter1242
@studiobaxter1242 Год назад
Try: 'Event actor begin overlap' then cast to the blueprint actor that you want to be the healing object (make sure it has a collision boundary) and then 'heal player'.
@Fasyle
@Fasyle Год назад
Would it not be simpler to invert your logic with Is Dead? Instead of constantly using Is Dead > NOT, just use Is Alive instead?
@Fasyle
@Fasyle Год назад
p.s. Super helpful video, thanks for making this content.
@__tezza__7567
@__tezza__7567 Год назад
How do I damage an enemy player
@virronenfin
@virronenfin 2 года назад
I did everything according to your video and checked everything more than 16 times, but nothing works for me. Can I contact you somehow?
@rttsh1616
@rttsh1616 Год назад
same did u find a fix
@owenstudios4107
@owenstudios4107 2 года назад
First
@BrikPlace
@BrikPlace Год назад
6:34
@nenosputros3102
@nenosputros3102 2 года назад
bro idk if the video is just old but im having trouble with the image if your gonna fricking talk about doing it in photoshop for a health bar can you give us your health bar so we dont have to go through the trouble of making our own also make your videos step by step people like me are slow at this stuff you call this beginner level while your going through everything super fast and you did not have to make a whole other video for this system you could have explained it in the first video and its not like it even works also others said that they got not a single respond also please explain the process of 2d think that would be much more helpful like using paper2d i know this is a long comment and thats bcz im fricking pissed and this has happened before many times but i actually want this channel to go well and be good and actually work instead of just using your skills to get a quick buck off of youtube and instead teaching others like me
@liamology-youtube2906
@liamology-youtube2906 Год назад
ITS IN THE FUCKING DISCRIPTION IN OTHER VIDEO LEARN TO CODE NERD
@nenosputros3102
@nenosputros3102 Год назад
@@liamology-youtube2906 did not see the other video but how do you say i am a nerd and besides the image i got my own to work and his code still did not work for me so please shut the hell up
@jhnart0647
@jhnart0647 2 года назад
nearly first
@thomasr9557
@thomasr9557 2 года назад
Theres so many of them that only use walls.. they think if they stil
@Zsquiggles5
@Zsquiggles5 Год назад
Hey would you be available for a call? I want to interview you on game devopmemt.
@GZKilla1
@GZKilla1 2 года назад
my character wont take damage looked over video multiple times, tried a pain causing volume instead of the cube, still nothing
@nimaxf.n
@nimaxf.n 2 года назад
first
Далее
How To Make A Health Bar In Unreal Engine 5
15:19
Просмотров 79 тыс.
Истории с сестрой (Сборник)
38:16
Sprinting And Stamina - Unreal Engine 5 Tutorial
17:00