Unreal Engine 4 - Applying Damage with Attacks (Part 29)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 87

  • @PuertaGiratoriaArgentina
    @PuertaGiratoriaArgentina 3 ปีที่แล้ว +3

    We miss you Titanic ❤

  • @Bradyrigg
    @Bradyrigg 7 ปีที่แล้ว +1

    This Was an AWESOME series! Thank you so much! Just as a note to anyone who has an AI already set up: to finish this off, you just need to add and Event any damage to the AI to allow it to be hurt by the weapon! I only know that because this series really teaches you how to BP program! I'm so pleased! Thanks again!

    • @chapter-comics
      @chapter-comics 5 ปีที่แล้ว

      Event Any Damage set me on the right track. Thank you!!

  • @reerjgiorge
    @reerjgiorge 7 ปีที่แล้ว +10

    Ok, i figured it out by myself, its pretty easy actually. For those who are interested about implementing the attack speed on weapons, the only thing you need to do is go to your Input Attack action on the character bp, do a cast to the base weapon, before anything else, get the item info from that cast, get the attack speed and plug that in the three montages, in the play rate value. Keep in mind, you need to setup those values in each weapon, and these values should be between 0.5 - 1.5 , more or less. Less than 0,5 will be extremely slow and viceversa. Of course these are my test, but you are free to put the values you want.

  • @infinityoriginsstudios9715
    @infinityoriginsstudios9715 7 ปีที่แล้ว

    Just wanted to say thank you for posting a very comprehensive tutorial on all of this. I just picked development back up this week as a hobby, and this got my head back into the game real quick.
    Also, as a experiential learner / a visual learner, I had a very hard time, in the past, understanding the big picture & how everything related / interacted through the snippets of stuff I was learning in more basic tutorials. This allowed me to really get the understanding I've been wanting for a while now of how it all works.
    I'll be throwing you some support on Patreon ASAP as a thank you!
    Also, if you have a discord channel for people to join and talk development, I'd love to join it. Keep up the awesome work good sir!

  • @geoffrey3668
    @geoffrey3668 6 ปีที่แล้ว

    This is really next level UE4 programming! This looks so much more professional than the other!

  • @App-Tips
    @App-Tips 4 ปีที่แล้ว

    Your tutorials are incredibly well done! Keep doing these!

  • @loonyphilosopher3450
    @loonyphilosopher3450 8 ปีที่แล้ว +7

    Man, Jackson, I cannot thank you enough! I’ve finished up the remaining videos available in this series, and I like it. I don’t have any gripes, but I have a couple suggestions, or requests… thoughts, maybe… I’m a TH-cam-noob so forgive me if I’m being unprofessional.
    1. We don’t have a Game Instance - I made a Trigger Box to transition between maps using another one of your tutorials, it’s quick, easy, and gets the job done. With a couple embellishments, like a short Delay, a particle system, and a blocking volume (on top of the level restriction), I have the makings of a quick and dirty dungeon entrance. The problem is that nothing saves between maps: no inventory/equipment items; no skill points; no stats; you begin a level 10 dungeon with a brand spanking new level 1 player character (that’s not going to be a fun dungeon lol). Maybe an open-world with level streaming can get
    around having to transfer a lot of these blueprints and variables into a Game Instance? Or should I begin a new project and start transferring data?
    2. Excess experience only exists if the remainder is LESS than the needed experience of the next level - That may be confusing. I made the Trigger Box that you demonstrated for “free” experience; I added a Do Once node, and named it “discover location_[dungeon name].” Add 150 exp. at player level 1 and everything works great; add 10,000 exp. at player level 1, and you are player level 2 with exactly 9,900/200 exp. needed for player level 3; spam 10,000 exp. and the bar doesn't work normally
    until player level 10… Now, I think I have an idea to fix this, but I haven’t tried it yet. With such skills, I doubt you’ll need it, but if you do, I’ll let you know if it works.
    3. If you plan to do a tutorial on AI, you might search for the free Infinity Blade assets in the UE4 Marketplace. It’s something available to everybody following your tutorials, plus they have a large selection of skeletal mesh weapons, characters, and enemies w/ anims, and also more than enough props for a quick scene. This is what I’m implementing for my game until I can focus on making content, but I’ll warn you... the Infinity Blade weapons are giving me a headache when attaching them
    to the sockets; the orientation in the skeleton viewer is not the same as it is in-game (at least not in my project). Maybe I need to export them and play with the orientation a little in Blender3D, I don’t know yet. For now, I’m just going to rotate them 100 different directions until they are in the ballpark.
    I don't know, just food for thought.

    • @titanicgames4785
      @titanicgames4785  8 ปีที่แล้ว +2

      1) Just pass all your info you need to transfer over to the next level into a Game Instance and then on Event BeginPlay of your character, cast to the Game Instance and use its variables to set your character's variables. You can create a function to hold everything so that there aren't a ton of wires everywhere. The Game Instance in this case would simply be used for relaying information back and forth to your character as he transitions levels. But yes level streaming is a viable option as there is no level loading involved (it loads streamed levels which is different than normal level loading since streamed levels are technically loaded into memory thanks to the way the game framework works). To actually save these variables though, you will want to have a Save Game object that you save your variables to from your character, and not the Game Instance.
      2) What you can do is after the initial experience is added, continue to compute level increases until the added experience doesn't exceed the max experience needed to level up. You could use a WhileLoop for this. Basically you run a while loop that increases the player's level and subtracts that level's required experience from the value of the added experience and then add that to the current experience, and finally increase the next level's required experience based on some algorithm or simple multiplication/addition. Do all of this while the added experience is greater than or equal to the level's required experience. I will probably do a tutorial on this soon but that should get you started.
      3) I haven't used them simply because I don't like how they are setup. But I will consider it in the future.
      Thanks for the suggestions, or requests...thoughts :) I hope that helps.

    • @loonyphilosopher3450
      @loonyphilosopher3450 8 ปีที่แล้ว +1

      Awesome! I am thoroughly satisfied. I had to think about what you were saying, in regards to the level increments, but I simply replaced the Branch with a While Loop and now it works perfectly. The Game Instance was a little bit trickier. However, I’m 5 hours away from a 33% reduction of full credit in class, so I only transferred over the player level variable and made the casts in the appropriate blueprints, but it saves between maps and isn’t really as complicated as I was causing it to be. I have you to thank for that… again. For making me feel like a super cool video game “programmer,” not the distraction from my course assignments; I blame the expedited curriculum for that. Sometimes, I wish I had followed through with studying to become a game developer, instead of a geologist. But, hey, my game is nearly entertaining, so I couldn’t be happier. With AI, I think that it will feel like a complete game for myself, and as soon as I figure out what is bogging down my FPS when I level up, and how to keep the Sun’s light from shining through the bottom of my landscape as it travels beneath it, I’ll really feel accomplished; but, in due time. I wish I could return the favor.

    • @lethiagames9208
      @lethiagames9208 8 ปีที่แล้ว

      hello in a future video, can you show us how to play as a original character, with original mesh, skeletonm, blendspce and animations.

  • @DangleDuffy
    @DangleDuffy 7 ปีที่แล้ว

    I was about to ask why my line trace wasn't happening, but then I realized I was doing the anim notify on the WRONG animation. HAHAHA. Anyway, awesome tutorials!! You're gonna help me make my first game with all this!

  • @siqunpan4199
    @siqunpan4199 8 ปีที่แล้ว

    Thanks for this series of tutorials, very helpful!

  • @iamisandisnt
    @iamisandisnt 8 ปีที่แล้ว

    Great series, man. I learned so much from you! I hope you keep this up. Maybe you can show variations on the theme, other methods of line tracing, other methods of interacting with objects in the world, etc?

  • @maxmustsleep
    @maxmustsleep 7 ปีที่แล้ว

    EXPLOSIONS! awesome tutorial dude :D

  • @johnwick7758
    @johnwick7758 7 ปีที่แล้ว

    Man you are awsome. Keep creating!!!

  • @Amakuu
    @Amakuu 8 ปีที่แล้ว

    ur the best man, im creating a shool project - rpg game, now im stopped on 4# video, im moving on slowly, cause my english is bad(im from poland) but thank u very much for creating this videos! go on man! I waiting for more :)

  • @becxgaming6800
    @becxgaming6800 7 ปีที่แล้ว +4

    Any chance of a tutorial showing how to make damage to an enemy and then the enemy death etc? Following on from this tutorial. Maybe include animations for the AI die?

  • @MegaMitrandir
    @MegaMitrandir 6 ปีที่แล้ว

    great series, thanks a lot!

  • @Bolisaris999
    @Bolisaris999 8 ปีที่แล้ว

    Hi, First of all Happy New Year to you. These tutorials are brilliant and I am definitely looking forward to more, would it be possible to show how to move resources around from one place to another, for example move a weapon from one storage bin to another without the need to hold it and walk between the 2 bins, this would make moving multiple objects easier.

  • @chrischaos6669
    @chrischaos6669 8 ปีที่แล้ว +1

    Awesome tutorials! I've learned alot. Can't what to see one on ranged weapons like crossbows and magic, also blocking with shields. maybe even different character classes for melee, magic and ranged? hope to see more future tutorials soon.

    • @TrickWithAKnife
      @TrickWithAKnife 8 ปีที่แล้ว

      This is something I'd like to see too. I've experimented with projectiles before, but there have always been issues.

    • @chrischaos6669
      @chrischaos6669 8 ปีที่แล้ว +2

      This is the best tutorial on here just cause of how clean everything is and works together and straight to the point with no errors. I've seen so many different ways of doing this and Titanic wins hands down.

    • @swordguy1243
      @swordguy1243 7 ปีที่แล้ว

      Chris Chaos everyone it's asking for this . I need to know how

    • @reerjgiorge
      @reerjgiorge 7 ปีที่แล้ว

      You guys are so LOL.

  • @gabrielcolin1530
    @gabrielcolin1530 7 ปีที่แล้ว

    This is great. Thank you so much.

  • @JohnAmanar
    @JohnAmanar 8 ปีที่แล้ว

    Amazing tutorials! Waiting for the new ones! ^_^

  • @Bolisaris999
    @Bolisaris999 8 ปีที่แล้ว

    Hi brilliant tutorials so far but I have a couple of suggestions for future tutorials but do not know whether to mention them here or if there is a place to do that, if you could let me know. I have subscribed to these tutorials in a hope of getting more.

  • @arnehendricks3496
    @arnehendricks3496 8 ปีที่แล้ว

    hey will there be any more of this series? greatly appreciated!

  • @alzeze2077
    @alzeze2077 8 ปีที่แล้ว

    if u can continue plz i am really lost on what to do and dont want to make any mistakes
    plz make more tuts!xD

  • @captainchyrnobles495
    @captainchyrnobles495 6 ปีที่แล้ว

    Hey Titanic, great job with the series! I'm attempting a melee attack which occurs on either hit event or event begin overlap, however, the hit event doesn't appear to work at all, and the overlap damages the enemy 2 or 3 times instead of the intended 1 damage hit per 1 attack animation. Is there a way to turn off the applied damage after the first hit? Or is there a way to set no overlap collision on animation notification periods?

  • @holographicSquid
    @holographicSquid 8 ปีที่แล้ว

    this is nice info. do you have a video that talks abut how to ably character attributes, and how to make items like an armor can make them go up? ie a shirt that adds 10 defense. and now you take less damage.

  • @Al_Keatinge
    @Al_Keatinge 8 ปีที่แล้ว

    Ino you said you were taking a break from this series of tutorials. But is there anyway you could do a quick tutorial to show how to fix the weapon equip animation. It will play the attack animation even on other items equipped like the armor ect...Would be a great help.Thanks

  • @marwanalqamy5054
    @marwanalqamy5054 7 ปีที่แล้ว +4

    What type of Structure is Weapon Info?

    • @GameKilla767
      @GameKilla767 6 ปีที่แล้ว +3

      did you ever find out? I am stuck on the same thing

    • @denzylfontaine4456
      @denzylfontaine4456 6 ปีที่แล้ว +3

      He explains it in part 16

  • @GreeDinPlay
    @GreeDinPlay 7 ปีที่แล้ว

    AI next please. You're the best!

  • @jello788
    @jello788 5 ปีที่แล้ว

    What if I want to create a animation and a hot box that does not do damage but stuns the target?

  • @SnappyMarco
    @SnappyMarco 8 ปีที่แล้ว

    Would it be possible to have a tutorial for using different types of items like Potions and other things like that, that are not equipment? Or point me towards the correct direction. I am a bit stuck with it at the moment. Thank you for the amazing set of tutorials until here, I have learned a lot!!

    • @titanicgames4785
      @titanicgames4785  8 ปีที่แล้ว +1

      So there's a Switch on Item Type in the character I believe, and basically off of the potion node you can Spawn Actor From Class (using the class from the item info as the one to spawn) and then cast it to BP_Potion (or whatever you've named it) and call a RestoreHealth function or any other functions you want. You could also spawn the potion and attach it to the character's hand joint and then play a drinking animation (if you've got one) as an added effect. Somewhere along the way just make sure to call DestroyActor on the spawned potion. I hope that helps get you started!

    • @juanimbriolo6310
      @juanimbriolo6310 6 ปีที่แล้ว

      @@titanicgames4785 i cant get this to work

  • @AlphaOmega
    @AlphaOmega 4 ปีที่แล้ว +1

    what about bare hand damage? need tutorial about it too.

    • @jello788
      @jello788 4 ปีที่แล้ว

      github.com/TitanicGames/RPGProject
      ''Disclaimer
      We are no longer actively working on this project so don't expect many bug fixes or additions at this time. As time allows, additional changes will be added.''
      Titanicgames - 4 Years ago

  • @Bagsy84
    @Bagsy84 6 ปีที่แล้ว

    so any tutorial on making enemy actually attack you back?

  • @MrSpecOps
    @MrSpecOps 7 ปีที่แล้ว

    at 9:40 it isn't letting me call the Get Primary Right Hand Item. What are the pre-requisites to set this bit up?

    • @MrSpecOps
      @MrSpecOps 7 ปีที่แล้ว

      sigh, nevermind, i tried to jump in and pull pieces from your configuration but the way you built your mechanics is really tight and efficient. I'm gonna start from your first tutorial :^) Thank you so much for putting in the time for this series, you are the teacher we need but don't deserve. I think this series give a really good backbone for many types of games and it's worth it to include all of the mechanics now instead of pulling my hair out later.

    • @Jacob-mh3rp
      @Jacob-mh3rp 6 ปีที่แล้ว

      I was wondering the same thing. Did you happen to find a solution?

    • @Hanzmeisterr
      @Hanzmeisterr 6 ปีที่แล้ว

      Anythin for this?

  • @MrISIDOROS
    @MrISIDOROS 6 ปีที่แล้ว

    Still pretty nice tutorial :D
    So what I m trying to do is , have my character punch if i m not wielding anything. I used the sword way to rig up my punch anims and it works great. Now i m gonna try free form it so it plays weapon anims when wielding and punch anims when not. I will need to make a second setup right? Not sure if i m thinking of it correctly....any tip is appreciated :)

  • @olku9909
    @olku9909 7 ปีที่แล้ว

    I love you man

  • @kevindTravels
    @kevindTravels 7 ปีที่แล้ว

    I have created an AI which is very similar to the Ch_Character we have made. How would i apply the damage when the AI is hit using this.

  • @flamewing8806
    @flamewing8806 8 ปีที่แล้ว +4

    This is an amazing tutorial. I would love to see it expanded upon but realize it takes a lot of time.
    If possible, something I can't find any really good tutorials on, is experience from killing an AI. I know experience systems are rather complex from what I have been able to find and the math just behind them, but it is one of the places that is really lacking. Your videos are great for setting up the basics and I realize (as I said) it gets really complex, but it would be nice to see how one is done for a complete one with a max level and so forth.
    Also, how would you suggest blocking out actual attacking skills through the level up system. I am a very big fan of Bioware games and realize it is done through the skill point system in some games, but it is also done just through level up in MMOs like World of Warcraft and the Star Wars: the Old republic (there are more games than just this).
    Again, it is just something I am curious about.
    Thank you so much for making these videos and for even passing out all the content for it for free!

    • @chrischaos6669
      @chrischaos6669 7 ปีที่แล้ว

      His XP system on adding xp works on anything. on your AI after you kill it on destroy actor just add the addXP after it with the amount of xp you want to gain after your AI is dead.

  • @takiherosquires1372
    @takiherosquires1372 5 ปีที่แล้ว

    how to get the character to move at the same time as attack?

  • @alzeze2077
    @alzeze2077 8 ปีที่แล้ว +3

    more vids plz thanksssss

  • @LordTalismond
    @LordTalismond 8 ปีที่แล้ว +1

    Would like to see a base terrain landscape, then dropping in character and interacting

  • @seanfernandez7272
    @seanfernandez7272 2 ปีที่แล้ว

    2022... using ue4.26 and this tuturioal series is still one of the best available! Only needed some small adjustmensts due to the engine updates but the community created here provided some very helpful information . I don't know what happened to Jackson from Titanic Games but it's just a pity he's not making any more tutorials. I wish he continued to make some more... . Wishing Jackson all the best though.
    I succesfully completed the full rpg tutorials from Titanic Games but however... I am struggeling with one thing though. I'm trying to implent some fighting combo's (without weapons) but I'm not getting it completly right. So the idea is to do some punch and kick attacks when there's no weapon attached but the problem is the character will continue with the weapon attacks and do the fighting attacks or when he is holding a weapon he will do the fighting attacks instead of the melee attacks. Could anybody help me out with this, please? I'd really appreciate some help... thans a lot in advance!

    • @seanfernandez7272
      @seanfernandez7272 2 ปีที่แล้ว

      Okay People... It suddenly hit to me how to solve this... . I made a savemeleeattack variable in the character bp, then I made meleecombo animmontages and replaced the saveattack notify with the savemeleeattack and resetmeleecombo. In the eventgraph of the character bp I used the savecomboattack and resetcombo nodes and animmontages for barehand fight attacks. After the inputaction node I skipped the branch with hasweaponattached and plugged inputaction node straight to the hasweaponsheated branch. Then copied this whole attack bp with animmontages and pasted it on a empty space and replaced all savecomboattack and resetcombo with the savemeleecomboattack and resetmeleecombo nodes. And after the inputaction node just placed the hasweaponattached branch and plugged it into the hasweaponsheated branch node. In the animbp I added the savemeleeattack and resetmeleecombo notify nodes and casted it to playercharacter and called the reffered functions for it. There, now you have barehand fight attack as well as a melee attack with just a weapon attached only. I thought this could be helpful for ue4 newbies like me.

  • @dariussullivan7430
    @dariussullivan7430 6 ปีที่แล้ว

    Does this work for a third person fighting game with no weapons?

  • @mmtony3521
    @mmtony3521 8 ปีที่แล้ว

    hey i have a request i mean i want from you to make a tutorial for me cuse i couldnt get a tutorial like that in ue4 even fourms or images didnt help me so can you make it? its about effects too

  • @jiutofu3294
    @jiutofu3294 5 ปีที่แล้ว

    hey could you a video for make radial damage

  • @ben_swain
    @ben_swain 7 ปีที่แล้ว

    The explosion VFX is showing up at the start and end of the sphere trace for me. It's supposed to be at the end only. Any ideas what could cause this?

    • @Jacob-mh3rp
      @Jacob-mh3rp 6 ปีที่แล้ว

      You ever find a solution?

  • @wakeanderson2648
    @wakeanderson2648 7 ปีที่แล้ว

    I would pay for private online tutoring!

  • @rashadmohammad4701
    @rashadmohammad4701 7 ปีที่แล้ว

    how to make when character is destroyed he drop everything in his inventory for multiplayer pvp

  • @jxenog5703
    @jxenog5703 8 ปีที่แล้ว +1

    Hey I was wondering if you could make a tutorial about making the attack speed for the weapons, i would like to make it so that the dagger has less damage and more speed but right now i don't know how. Thank you btw for this tutorials they have really helped me out

    • @jxenog5703
      @jxenog5703 8 ปีที่แล้ว

      A drag and drop inventory would also be really useful

    • @reerjgiorge
      @reerjgiorge 7 ปีที่แล้ว

      In a game like this, a drag system is essential. Because you would want to drag other weapons to the secondary slots and so on. He said he was going to do a drag system, but as other millions of things, it was just that, words.. unfortunatelly. I also wanted to learn how to implement the attack speed on weapons, because that is also incredibly important for a game like this. But well, i guess we are out of luck.

  • @ИльяИльченко-з9ч
    @ИльяИльченко-з9ч 6 ปีที่แล้ว

    that speech maner...i slmost forgot tha i am not english native ;D

  • @marwanalqamy5054
    @marwanalqamy5054 8 ปีที่แล้ว

    is this still going? (Congrats on almost 1k subs)

  • @henriqueam
    @henriqueam 8 ปีที่แล้ว

    Hello there, will you keep up this rpg serires??

    • @titanicgames4785
      @titanicgames4785  8 ปีที่แล้ว +4

      Hi there. As of a few months ago I put it on hold for various reasons, but I plan to revisit it in the future and hopefully improve upon many of the mechanics. Sorry :(

  • @wdrazzen88
    @wdrazzen88 8 ปีที่แล้ว

    I have a question about creating damage I made a right fist punch and added a collision sphere and programmed the right mouse true and false on button push, I'm trying to add damage to a box to destroy actor but it just moves after being hit how would you setup the blueprint for damage from the fist to enemy please help

  • @marwanalqamy5054
    @marwanalqamy5054 8 ปีที่แล้ว +1

    WHY ARENT YOU MAKING NIDEOS ANYMORE! I HOPE YOUR WORKING ON ONE! (Love your vids)

  • @MrSpecOps
    @MrSpecOps 7 ปีที่แล้ว

    In which video did you define the weapon info blueprint variable?

    • @MrSpecOps
      @MrSpecOps 7 ปีที่แล้ว +2

      For those who are just tuning into this video to see how to apply damage, it is defined in part 16

    • @Jacob-mh3rp
      @Jacob-mh3rp 6 ปีที่แล้ว

      Thanks!

  • @peterhamsterhotdog613
    @peterhamsterhotdog613 7 ปีที่แล้ว

    Can you make a vidio about an AI enemy that the player can kill ore it can kill the player and how to do it that woud really help me out a loot ;)

  • @romanegamer392
    @romanegamer392 7 ปีที่แล้ว

    hallo mate your dont keep the work on this tutorial ?
    can your maby try to make a AI Enemy Whit Animations to fight ? well be so cool, there dont be so many tutorials on that so you can be the frist there make one where its works, and all so make a loot chest to get some items, or maby some more stuff to the inventory like items stats, showing item info well be so nice :)

  • @PoudPatriotPastor
    @PoudPatriotPastor 8 ปีที่แล้ว

    Can you do- blood enimies monsters and bosses ? Like if you want him to do this!

  • @henriqueam
    @henriqueam 8 ปีที่แล้ว

    Well Sorry to hear that. Find lessons on RPG for unreal is really hard, i really liked your method and the content is Very complete. but its not easy to build a RPG....
    Well such a Shame... guess Ill have to look for Unity guides then.
    let me know If You Ever come back to It and start a patreon or something.
    a Diablo séries would be a hit... and You could count with my donation for sure.
    cheers

  • @zibinaht
    @zibinaht 8 ปีที่แล้ว

    Anyone want to discuss the project? I got some bugs and i think we can help each other out if you do too

    • @titanicgames4785
      @titanicgames4785  8 ปีที่แล้ว

      Hey there. We have a discord channel (found here discord.gg/ZDtMy5J) where people come to talk about issues they have with the project. Feel free to check it out!

    • @reerjgiorge
      @reerjgiorge 7 ปีที่แล้ว +1

      Oh yeah. Go there and ask for help. They will polite tell you to "do it by yourself". What a great helping discord channel.. you really should check what members you have in there.

    • @jello788
      @jello788 4 ปีที่แล้ว

      @@reerjgiorge this channel died =/