Fall Damage - Unreal Engine 4 Tutorial

  Рет қаралды 13,035

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to create fall damage in unreal engine 4. This system is very easy to customise for yourself, whether it is the height, speed, differing damage types or damage amount.
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:10 - Overview
00:55 - Tutorial
12:01 - Final Overview
12:18 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :) ___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Пікірлер: 64
@swastik14
@swastik14 3 жыл бұрын
I am searching some tutorial about how to do this and that. Then I found your channel. And you have upload soo many tutorials that I can add into my game this will help me a lot but not me it will help all boys/girls that are using your tutorial to make game or for studying Thank you to making that beautiful KZbin channel and congratulation for holding 3k peoples. And last I have to ask one question that if you are good in UE4 so why don't you make your own game Thanks you, gentleman
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much man, so happy I could help you out as much as I have. I appreciate your feedback! And I'm going to be making a game very soon, I'll probably be making devlog videos on it too, thanks again :)
@papycoima
@papycoima 2 жыл бұрын
I'm basically a newbie on Unreal Engine and I've always wanted to make a game of my own. After discovering how difficult programming was, I was about to drop the sponge, until I discovered your channel. Here I got and still getting so much information and stimulation I couldn't get anywhere else. What I'm trying to say is: thank you a thousand times for helping and inspiring all of us indie game makers.
@1d33f1x3
@1d33f1x3 3 жыл бұрын
This was a big help, thanks! I modified it by multiplying the damage by a float curve, depending on how fast the character is falling (instead of the thresholds and the branches).
@BearyK8
@BearyK8 2 жыл бұрын
your videos are so helpful and well organised thank you so much!! i really enjoy watching these
@Gcaptain14
@Gcaptain14 3 жыл бұрын
Good this will help to all who are new
@MattAspland
@MattAspland 3 жыл бұрын
That's great to hear, thank you!
@brockdish
@brockdish Жыл бұрын
2:55 you can also use the "Absolute (Float)" node which actually does the same but it saves more space (idk if that node was available in UE4)
@nextanvil3346
@nextanvil3346 3 жыл бұрын
Happy 4k subscribers!!!
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much for being here on the journey with me! :)
@milan.980
@milan.980 3 жыл бұрын
Congrats on 4K
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much Milan! Thanks for all the support too! :)
@BM_100
@BM_100 2 жыл бұрын
Hi everyone, If it's not working, try setting your Health and Damage variables as floats instead of integers. For some reason it wasn't working for me when they were integers. It is a pain going back and changing all of the Health/Damage Get/Set nodes, but it's not that big of a deal. Btw this video is very good. Thank you Matt for it!!!! Very nice
@n1lknarf
@n1lknarf 2 жыл бұрын
thanks, you're a life saver
@ZarconVideo
@ZarconVideo 3 жыл бұрын
For a frame of reference in unreal. A -2000 fall speed would be about jumping off a 50-foot tower.
@royalavelius502
@royalavelius502 2 жыл бұрын
wow very nice, thx for this awesome video. :)
@stevenwynn819
@stevenwynn819 3 жыл бұрын
Nice way to accomplish this, and well explained.
@MattAspland
@MattAspland 3 жыл бұрын
Thank you Steve, always happy to hear feedback!
@samsungalaxyxd1823
@samsungalaxyxd1823 3 жыл бұрын
Thank you, I was following other's youtuber 2d side scroller tutorial, and he didn't include fal ldamage so I found this tutorial, it doesn't work for me for now but probably it's my fault and i'll fix it (update: it works suuuper weirdly help) I surely will see your other tutporials
@jello788
@jello788 3 жыл бұрын
Thanks for the help :)
@MattAspland
@MattAspland 3 жыл бұрын
No problem :)
@RRRR_281
@RRRR_281 2 жыл бұрын
could you maybe do a tutorial on fall damage thats linked to the health bar so when you take fall damage it takes away about 10 health
@ThanatosTheDH
@ThanatosTheDH 2 жыл бұрын
how would you implement this if your game has glider system?
@MacdromedaV2
@MacdromedaV2 2 жыл бұрын
I love this setup! I used it on a character and it worked perfectly. But recently i redid the character and reset all of its coding. Now i cant seem to get mine working, every time i fall no matter what it only does like 5 points of health. Very much confused, if you could possibly help me id really appreciate it!
@ldracarys9905
@ldracarys9905 2 жыл бұрын
hello i have a rootmotion system and im new in unreal, i don't know how to do it but i want to keep my run/walk speed when im falling, why my isInAir stop my speed ?
@abdullahsohail5395
@abdullahsohail5395 3 жыл бұрын
Nice video it will me help alot :)
@MattAspland
@MattAspland 3 жыл бұрын
Thanks, that’s great to hear! :)
@brockdish
@brockdish Жыл бұрын
8:01 use "Delay until next tick" node
@bommyco4
@bommyco4 Жыл бұрын
what if we alreadyt used our OnMovementMode changed?
@alexjr977
@alexjr977 3 жыл бұрын
Yeh that is what i need
@MattAspland
@MattAspland 3 жыл бұрын
Great to hear it!
@Eren-cy6ln
@Eren-cy6ln 3 жыл бұрын
How did you even know that I was looking for something like this right now for my school project? :D Quite the coincidence! Also, I have a question how can I do this with a health bar?
@milan.980
@milan.980 3 жыл бұрын
bind health variable to the health progress bar, Matt has a video on enemy health bar, kind of same process :)
@MattAspland
@MattAspland 3 жыл бұрын
Ha yep lol, glad I could help out at the right time though. And Milan is correct, you can just link this to a widget, I can make a follow up tutorial if you like :)
@Eren-cy6ln
@Eren-cy6ln 3 жыл бұрын
​@@MattAspland Thanks for the reply but I already managed to make it work myself somehow. I discovered your tutorials yesterday and they helped a lot in finishing up my project. Unfortunately not everything worked out as I wished them to be but this was my first time using ue 4 blueprints and I should have started working much earlier on this. Thanks a lot anyway! :D:D
@MattAspland
@MattAspland 3 жыл бұрын
@@Eren-cy6ln That's great to hear, glad you got your project finished. Each new project will be better than the last, all the best of luck with your future! :)
@nagybalint1474
@nagybalint1474 3 жыл бұрын
wow great can you make a tutorial on some like logic on how to make the player regenerate health if he isn't in combat I can't figure out how to detect if he isn't close to the enemies or like an amount of time since he last attacked or smth like this
@nagybalint1474
@nagybalint1474 3 жыл бұрын
so basically if he isn't in combat slowly regenerate all his health
@MattAspland
@MattAspland 3 жыл бұрын
Sounds like a great idea thank you, I'll add it to my list
@Grand-warden
@Grand-warden 3 жыл бұрын
Wow so good a video
@MattAspland
@MattAspland 3 жыл бұрын
Thank you man!
@sjru4eu4u45urjdrjrj
@sjru4eu4u45urjdrjrj 2 жыл бұрын
I have Fall Damge when i jump into the water, How can I prevent this?
@Ryuzaki0010
@Ryuzaki0010 3 жыл бұрын
Awesome dude, really good tutorial, i had alot of issues trying to put this on ALS (because i'm a fucking noob in this) but finaly i did. Probably no one gives a shit but if someone ask how just have to: go to your ALS Base character and copy "Parent OnMovementModelChanged" and the next one and paste to your ALS Animan character Event graph and put it between the Event OnMovementModelChanged and the first Branch do the conections same as in the Base char and make sure that New movement mode is conected to the equal falling, the rest is just as this boss shows us. PD: i was trying to put the Hunger system too and just have to conect at the end of the event tick that is already doing some stuf and that it, that fix alot of issues in the mesh and the ragdoll, works fucking perfectly. Really tnx alot man you make me the day :)
@MattAspland
@MattAspland 3 жыл бұрын
That's great to hear man, so glad you got it solved and working. Thank you for sharing it here too for others to see and use. Thank you so much for your kind words too, I hope you have a great day and I wish you all the best of luck with your future! :)
@rodroeq7956
@rodroeq7956 3 жыл бұрын
Sorry I got lost, does someone know how a custom event keeps calling when is plug to a delay? Is the only part I didn't understand, I thought he would use a tick event.
@MattAspland
@MattAspland 3 жыл бұрын
Hey, you could use the Event Tick however it is less efficient. The custom event works by calling the event again at the end of the code until you don't need it anymore. What the delay does is it allows the code to finishing firing off before we call it again, therefore prevent an infinite loop, which would also give you a fatal error. Again, Event Tick can be used, however you want to use it as minimal amount of times as possible, custom events are a lot more efficient. I explain a little bit more about what custom events are in this video below. kzbin.info/www/bejne/bGm6h3mBgbage6c
@rodroeq7956
@rodroeq7956 3 жыл бұрын
@@MattAspland oh thank you so much this was helpful!!!
@rodroeq7956
@rodroeq7956 3 жыл бұрын
@@MattAspland dude your basic nodes videos are amazing, people always explain exactly what it does but not how it could be use in an gameplay example. This is awesome!!!
@MattAspland
@MattAspland 3 жыл бұрын
@@rodroeq7956 Glad I could help, and thanks man. I appreciate that, again happy I could help out! :)
@drninator
@drninator 2 жыл бұрын
I don't know if anyone here will answer but I have a problem, I have a health counter that already changes during the fall, does anyone know how I can fix this? Good video by the way!
@drninator
@drninator 2 жыл бұрын
and it goes below 0
@fkmeta3479
@fkmeta3479 3 жыл бұрын
@matt Im trying to make sfx when a character is dying with a command "below" , It works and plays the sound, however, it also plays the "damage take" sound at the same time, (2 sounds at the same time) is there a way I can make it so it only plays one sound at a time. > ibb.co/HVXkgbF
@khazinianimation
@khazinianimation 3 жыл бұрын
8:42
@mirapakulinek
@mirapakulinek 3 жыл бұрын
How create GTA V ragdoll psichyck ?
@MattAspland
@MattAspland 3 жыл бұрын
Hey, which part specifically, the ragdoll from falling?
@mirapakulinek
@mirapakulinek 3 жыл бұрын
@@MattAspland Yes
@MattAspland
@MattAspland 3 жыл бұрын
@@mirapakulinek Okay, I've got a ragdoll video here, let me know if it helps :) kzbin.info/www/bejne/bpXCqWuDbql3jJo
@mirapakulinek
@mirapakulinek 3 жыл бұрын
@@MattAspland thank you
@EricLefebvrePhotography
@EricLefebvrePhotography 2 жыл бұрын
This seems overly complex. Why not simplify it by taking your speed travekled - your safe speed (650 in your exxample) and then do 1 point of damage for every x traveled? Let's say 1 point of damage for evey 10. So if you fell 700 units that would be 50 units more than your safe distance then that would mean 50 / 10 = 5 X 1 = 5 points of damage. Adjust to taste. You save a lot of branches that way.
@ak-gi3eu
@ak-gi3eu 3 жыл бұрын
please add animation in the next video
@MattAspland
@MattAspland 3 жыл бұрын
Hey, what kind of animation would you want?
@ak-gi3eu
@ak-gi3eu 3 жыл бұрын
@@MattAspland falling animation and dieing when he hits ground,,,,,and can you do vaulting like getting up on something and climbing something with differnt heights
@MattAspland
@MattAspland 3 жыл бұрын
@@ak-gi3eu Okay, I have a video on a hard landing animation which will be what you are after. As for the falling, that would be in the animation blueprint, I'm going to do another more advanced video on that shortly. And I have vaulting already too. Hard Landing: kzbin.info/www/bejne/Y5DCc4qCiZhqq80 Animation Blueprint: kzbin.info/www/bejne/Z3yQeayrab2hack Vaulting Part 1: kzbin.info/www/bejne/npCmo5KXr8mmeqc
@screenapple1660
@screenapple1660 Жыл бұрын
Sigh... this is waste of time. I double checked this. I don't think I'm able to finish my game on time. Doe this code work other characters? I need download
How To Make A Health Bar In Unreal Engine 5
15:19
Matt Aspland
Рет қаралды 72 М.
How To Climb Ladders - Unreal Engine 4 Tutorial
7:36
Matt Aspland
Рет қаралды 28 М.
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 1,1 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 18 МЛН
Fall Damage System - UE5
22:05
LocoDev
Рет қаралды 2,4 М.
How to Make a Simple Behavior Tree in Unreal Engine 5 - Advanced AI
20:47
Unreal Engine 4 Tutorial - Fall Damage
8:26
Ryan Laley
Рет қаралды 12 М.
Creating a More Realistic Player-Model for LETHAL COMPANY
24:00
Fall Damage Tutorial - Unreal Engine 5.2
5:50
Lisowi
Рет қаралды 2,7 М.