Fall Damage - Unreal Engine 4 Tutorial

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • 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

Komentáře • 64

  • @swastik14
    @swastik14 Před 3 lety +14

    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 CZcams 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  Před 3 lety +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 :)

  • @1d33f1x3
    @1d33f1x3 Před 3 lety +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).

  • @papycoima
    @papycoima Před 3 lety +6

    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.

  • @BearyK8
    @BearyK8 Před 2 lety

    your videos are so helpful and well organised thank you so much!! i really enjoy watching these

  • @milan.980
    @milan.980 Před 3 lety +1

    Congrats on 4K

    • @MattAspland
      @MattAspland  Před 3 lety +1

      Thank you so much Milan! Thanks for all the support too! :)

  • @nextanvil3346
    @nextanvil3346 Před 3 lety

    Happy 4k subscribers!!!

    • @MattAspland
      @MattAspland  Před 3 lety

      Thank you so much for being here on the journey with me! :)

  • @royalavelius502
    @royalavelius502 Před 2 lety

    wow very nice, thx for this awesome video. :)

  • @Gcaptain14
    @Gcaptain14 Před 3 lety +4

    Good this will help to all who are new

  • @n1lknarf
    @n1lknarf Před 2 lety

    thanks, you're a life saver

  • @stevenwynn819
    @stevenwynn819 Před 3 lety

    Nice way to accomplish this, and well explained.

    • @MattAspland
      @MattAspland  Před 3 lety

      Thank you Steve, always happy to hear feedback!

  • @BM_100
    @BM_100 Před 2 lety

    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

  • @jello788
    @jello788 Před 3 lety

    Thanks for the help :)

  • @samsungalaxyxd1823
    @samsungalaxyxd1823 Před 3 lety

    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

  • @ZarconVideo
    @ZarconVideo Před 3 lety +1

    For a frame of reference in unreal. A -2000 fall speed would be about jumping off a 50-foot tower.

  • @abdullahsohail5395
    @abdullahsohail5395 Před 3 lety

    Nice video it will me help alot :)

  • @brockdish
    @brockdish Před rokem

    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)

  • @brockdish
    @brockdish Před rokem

    8:01 use "Delay until next tick" node

  • @alexjr977
    @alexjr977 Před 3 lety +1

    Yeh that is what i need

  • @Eren-cy6ln
    @Eren-cy6ln Před 3 lety +4

    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 Před 3 lety +1

      bind health variable to the health progress bar,
      Matt has a video on enemy health bar, kind of same process :)

    • @MattAspland
      @MattAspland  Před 3 lety

      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 Před 3 lety +1

      ​@@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  Před 3 lety

      @@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! :)

  • @Grand-warden
    @Grand-warden Před 3 lety

    Wow so good a video

  • @RRRR_281
    @RRRR_281 Před 2 lety +1

    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

  • @Ryuzaki0010
    @Ryuzaki0010 Před 3 lety

    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  Před 3 lety

      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! :)

  • @MacdromedaV2
    @MacdromedaV2 Před 2 lety

    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!

  • @nagybalint1474
    @nagybalint1474 Před 3 lety

    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 Před 3 lety +1

      so basically if he isn't in combat slowly regenerate all his health

    • @MattAspland
      @MattAspland  Před 3 lety +1

      Sounds like a great idea thank you, I'll add it to my list

  • @ThanatosTheDH
    @ThanatosTheDH Před 2 lety

    how would you implement this if your game has glider system?

  • @ldracarys9905
    @ldracarys9905 Před 2 lety

    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 ?

  • @bommyco4
    @bommyco4 Před rokem

    what if we alreadyt used our OnMovementMode changed?

  • @drninator
    @drninator Před 3 lety

    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!

  • @sjru4eu4u45urjdrjrj
    @sjru4eu4u45urjdrjrj Před 2 lety

    I have Fall Damge when i jump into the water, How can I prevent this?

  • @rodroeq7956
    @rodroeq7956 Před 3 lety

    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  Před 3 lety +1

      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.
      czcams.com/video/68WVFKLQmEE/video.html

    • @rodroeq7956
      @rodroeq7956 Před 3 lety +1

      @@MattAspland oh thank you so much this was helpful!!!

    • @rodroeq7956
      @rodroeq7956 Před 3 lety

      @@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  Před 3 lety

      @@rodroeq7956 Glad I could help, and thanks man. I appreciate that, again happy I could help out! :)

  • @khazinianimation
    @khazinianimation Před 3 lety

    8:42

  • @ak-gi3eu
    @ak-gi3eu Před 3 lety

    please add animation in the next video

    • @MattAspland
      @MattAspland  Před 3 lety

      Hey, what kind of animation would you want?

    • @ak-gi3eu
      @ak-gi3eu Před 3 lety +1

      @@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  Před 3 lety

      @@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: czcams.com/video/-__BWLT37uk/video.html
      Animation Blueprint: czcams.com/video/1K-Hyu4Xn3g/video.html
      Vaulting Part 1: czcams.com/video/h_Cr_azdsDE/video.html

  • @fkmeta3479
    @fkmeta3479 Před 3 lety

    @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

  • @EricLefebvrePhotography

    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.

  • @mirapakulinek
    @mirapakulinek Před 3 lety

    How create GTA V ragdoll psichyck ?

    • @MattAspland
      @MattAspland  Před 3 lety

      Hey, which part specifically, the ragdoll from falling?

    • @mirapakulinek
      @mirapakulinek Před 3 lety +1

      @@MattAspland
      Yes

    • @MattAspland
      @MattAspland  Před 3 lety

      @@mirapakulinek Okay, I've got a ragdoll video here, let me know if it helps :)
      czcams.com/video/8d_x8M9DDV8/video.html

    • @mirapakulinek
      @mirapakulinek Před 3 lety +1

      @@MattAspland thank you

  • @screenapple1660
    @screenapple1660 Před rokem

    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