Smart Enemy AI | (Part 20: Boss Fight) | Tutorial Unreal Engine 5 (UE5)

  Рет қаралды 16,270

Ali Elzoheiry

Ali Elzoheiry

Күн бұрын

Learning Goals:
1 - You will learn 5 rules of how to design a good boss fight
2 - How to create a boss health bar in the player HUD
3 - Create a child AI controller and override parent functions
4 - Create boss attack combos
5 - How to make it so that the boss doesn't get staggered on every parry
6 - How to make any enemy block damage
To download the full project files from all my videos and use any assets I create in your own games for free, then join my Patreon. Also I would be forever thankful to my early adopters
/ alizoh
Join my Discord server to chat and mingle with the community
/ discord
Link to the full "Smart Enemy AI" Series:
• Smart Enemy AI Tutoria...
Link to the "Shooting Projectiles" tutorial:
• How to Shoot Projectil...
Link to the "Damage System" tutorial:
• How to Build a Combat ...
Link to the "AOE damage/healing" tutorial:
• How to do AOE damage a...
Checkout my other tutorials on my channel:
/ @alielzoheiry
Chapters:
00:00 Intro
00:56 What makes a good boss fight?
03:56 Creating the boss enemy & setting defaults
09:10 Creating/Equip the axe weapon
13:34 Axe movement/idle animations
18:48 Boss health bar in the player HUD
37:49 Creating boss behavior tree
40:23 First melee combo attack
49:03 Prevent interrupts from behavior tree
52:07 Stagger boss only on some parries
56:46 Moving block functionality to base enemy
01:05:04 Next up in part 21
Assets used:
- FX Variety Pack: www.unrealengine.com/marketpl...
- Axe animations from Mixamo: www.mixamo.com/#/?page=1&quer...
- Paragon Sparrow: www.unrealengine.com/marketpl...
- Paragon Gideon: www.unrealengine.com/marketpl...
- Paragon Feng Mao: www.unrealengine.com/marketpl...
About me:
I've been learning game development for a few years now, I do have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming, software engineering and education is the best way to spend my time.
I am currently working on this 3rd person action adventure game as a hobby, but I am also trying to build a community, thus I am creating KZbin tutorials to find others who are interested in game development and design.
If you are interested in learning more or if you are interested in working together, please let me know in the comments.
#unrealengine #unrealengine5 #ue5 #gamedev #smart #enemy #combat #AI #blueprint #tutorial #behavior #tree #attack #system #behaviortree #boss #healthbar #melee #block #parry #combo

Пікірлер: 86
@diliupg
@diliupg 5 ай бұрын
Ali, you are by far the best at Unreal Engine AI tutorials. Your tutorials are so detailed and in-depth.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you Diliup, I'm really glad you are finding this useful 😊🙏
@VinoVenitas
@VinoVenitas 8 күн бұрын
I have been looking like crazy to find a good boss tutorial I could use for my game. And this was it man. Great start into boss fights.
@AliElZoheiry
@AliElZoheiry 5 күн бұрын
Hey, thank you for your comment! I'm really glad to hear that the tutorial was helpful for your game's boss fight. Good luck with the development! 🎮
@zymian
@zymian 5 ай бұрын
Amazing tutorials as always, keep up the great work!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you Zymian, glad you enjoyed it 🙏
@tim0motyahoo
@tim0motyahoo 5 ай бұрын
Hey Ali ! Please keep this up it has helped me out a lot for my side projects !!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey Tim, thank you! glad they are helpful, I'll definitely keep it up
@okinava_play
@okinava_play 5 ай бұрын
Wicked awesome ! Like always bro🤘
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you bro 🙏😊 hope it was helpful
@specops2925
@specops2925 5 ай бұрын
Woooow amazing amazing that's completely different level tutorial really Ali you're the best of the best
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you soo much SpecOps, really glad you think so, I appreciate the support ☺️🙏
@samedy5119
@samedy5119 5 ай бұрын
great tutorial keep going with this series 🔥
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you ! Glad you liked it. There are 2 more videos coming soon
@Leonardo-zb6ho
@Leonardo-zb6ho 2 ай бұрын
Hello Ali, thank you for the amazing tutorials as always. I made the boss just like you, from the enemy base, but even with the Behavior Tree of the Melee enemy he's stuck in the passive state. He equips the weapon and sets the focus on me, but doesn't attack and doesn't walk towards me. The same behavior tree works perfectly with the melee enemy. Thank you for your attention, you're incredible
@Leonardo-zb6ho
@Leonardo-zb6ho 2 ай бұрын
I just saw that it's actually stuck in "Is weilding Weapon", so after the wait he executes the "Is Weilding Weapon" over and over
@Leonardo-zb6ho
@Leonardo-zb6ho 2 ай бұрын
Nevermind, I forgot to set "IsHoldingWeapon" to true after attaching the weapon to the boss... Thank you for your attention as always lol
@AliElZoheiry
@AliElZoheiry Ай бұрын
Hey there! Thank you for your kind words. Glad you figured out the issue. Well done 💪
@onlyonedk
@onlyonedk Ай бұрын
Duddde I am finally here! super excited for this tutorial!
@AliElZoheiry
@AliElZoheiry Ай бұрын
Well done on getting here! That must have been quite the journey. I hope you're learning 🙏
@onlyonedk
@onlyonedk Ай бұрын
@AliElZoheiry I'm learning and I'm grateful my guy! Thank you isn't enough, but a million thank you for everything you teach in this series. A gold mine!
@arcturus2685
@arcturus2685 5 ай бұрын
Thank you so much for making this tutorial!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
You're very welcome man 😊 glad you enjoyed it 🙏
@patricktoussaint6038
@patricktoussaint6038 3 ай бұрын
Always the best tutorials!
@AliElZoheiry
@AliElZoheiry 3 ай бұрын
Thank you so much for your kind words! I'm thrilled to hear that you're enjoying the tutorials! and that you've made it to the boss fight!
@sxcylla4438
@sxcylla4438 5 ай бұрын
You killed this brother LITERALLY... Keep Going !!!!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you man, really glad you enjoyed it. I'll definitely keep it up
@danelokikischdesign
@danelokikischdesign 5 ай бұрын
Super great tutorials!!!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you Danelo, really glad you're liking them!
@WiseThoughts3
@WiseThoughts3 5 ай бұрын
Hi just want to say you indeed know what you are doing and this really helps to understand one of the most importnant feature in a game
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you WiseThoughts 🙏I really appreciate you, and I'm happy you are finding thi shelpful
@CosmicComputer
@CosmicComputer 5 ай бұрын
The best. Thank you Ali.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
You're very welcome, glad you enjoyed it 😁
@IAmSidh108
@IAmSidh108 5 ай бұрын
Hey hi, just stumbed across your channel and your tutorials seem very thorough and in-depth. Just wanted to ask are you going to continue this Enemy series or Unreal in general. And if yes, what are the things that are coming up. Just loved your videos and subscribed.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey Siddharth, Glad that you like my tutorials, thank you 🙏 Right now, I'm going to take a break from the AI tutorials and focus on other topics, but I will eventually come back to it and add some more functionality, though I haven't decided what or when yet
@alhosamspirit8044
@alhosamspirit8044 5 ай бұрын
Keep going, Good Luck
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you! I will definitely keep going 🙏
@lxyuan14517
@lxyuan14517 5 ай бұрын
best Unreal Engine AI tutorials.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you so much, hope you enjoy the rest 🙏
@fuad.othman
@fuad.othman 5 ай бұрын
awesome content, hope to see dodging mechanic by rolling or jumping, and also the boss can cast healing, they way to cancel it by doing certain type of damage like magic or certain move.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey Fuad, glad you liked it, thank you for the suggestions, I already finished the boss fight and will upload the next 2 videos once they are ready, hope you enjoy them
@user-tk1vu2lx9v
@user-tk1vu2lx9v 5 ай бұрын
your tutorials are awesome!!! :) you are great! :) please let this tutorial watchable, i dont have time to watch in realtime now :(
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you 🙏Sorry I can't make it watchable immediately since it's a premier, it will be available for regular watch in about 30-40 mins
@user-tk1vu2lx9v
@user-tk1vu2lx9v 5 ай бұрын
@@AliElZoheiry Thank you bro :)
@Daily_Dose_of_Common_Sense
@Daily_Dose_of_Common_Sense 4 ай бұрын
Hello all , i just wanted to say Thanks to Ali for making these types of video's . After watching it gave me energy and motivation . i am downloading U5 asap . i have so many idea's and even more question's . Ready Player One }--{>>>>>>>
@AliElZoheiry
@AliElZoheiry 3 ай бұрын
Hey there! Thank you so much for your kind words. I'm really glad to hear that the videos inspired and motivated you. Good luck with your ideas and questions, and welcome to the Unreal Engine 5 community!
@allthefame37
@allthefame37 5 ай бұрын
DANG, bro! This is awesome! Will you be doing multiple phases in the boss fight?
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thanks man! I didn't implement multiple phases, but I briefly touch upon how to increase difficulty as the fight progresses
@oliver7garcia31
@oliver7garcia31 2 ай бұрын
Hi Ali, I would like to remind you that you teach very well, I wanted to know since you have done software engineering if you can recommend any book about programming or techniques about it, thanks!
@AliElZoheiry
@AliElZoheiry 2 ай бұрын
Hi there! I'm glad you find my tutorials helpful. As for books on programming and techniques, I'd recommend "Clean Code" by Robert C. Martin and "Design Patterns: Elements of Reusable Object-Oriented Software" by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. Both are excellent resources for improving programming techniques. Enjoy your reading!
@oliver7garcia31
@oliver7garcia31 2 ай бұрын
@@AliElZoheiry Thank you so much Ali for recommending the books!!! As always a great contribution
@vidwardio3202
@vidwardio3202 2 ай бұрын
hi there, @alielzoheiry, for some reason all my enemies have stopped moving for some reason. Even the mage enemy is not able to teleport. but the enemies are able to do everything else. Can you pls help in this regard? Thankyou
@AliElZoheiry
@AliElZoheiry 2 ай бұрын
Hey there! Sorry to hear you're having troubles, though I can't tell what the problem is from this explanation alone. I'd suggest debugging it a bit using print statements and break points. I also have a video on how to find and fix bugs on my channel, so check that out
@xenocreatives6456
@xenocreatives6456 5 ай бұрын
yasssss!! coolnesss!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Glad you think so 🙏
@patrykleveldesign
@patrykleveldesign 4 ай бұрын
In general, in this entire guide, I miss connecting it with the abilitysystem to make more sense
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
Hey Patryk, are you referring to the unreal "Gameplay ability system" or something else?
@kellowattentertainment
@kellowattentertainment 2 ай бұрын
Ok, I've discovered a new issue. For some reason, the AI controllers for the Boss and the Base enemies can conflict with each other even though one is a child of the other. I'll explain. I have a Boss character that patrols around around the area randomly when in passive. Even though he has the Boss AI controller, when he switches directly from the Passive state to the Attacking state, the Behavior Tree switches to the Attacking state immediately, but the patrolling state continues until character gets to the random patrol point where it was going to before the state switched. It also does everything in the attacking state, even attack, while still moving to the patrol point. It would mean that both states are active at the same time even though it's on a selector. The patrol (passive state) is not aborted immediately. Or is aborted only after the random patrol point is reached. I've change the character blueprint, I've changed the behavior tree, changed the AI controller. which when I switch the AI controller to the Base, it works perfectly. It means that both controllers are being called at the same time onto the the Boss Character... and the behavior tree cannot differentiate between the two.... which is weird. So, I'm gonna set the Boss AI controller to be a duplicate of the Base AI controller, instead of a child. That should fix the issue.
@AliElZoheiry
@AliElZoheiry 2 ай бұрын
Hey. I appreciate you sharing your findings, I'm not really sure I understand the issue you're describing, because there can't be 2 instances of a class running at the same time on a single object instance, but I assume there is something else happening. I hope it resolves the issue. Keep me updated!
@zrmdevelopment7260
@zrmdevelopment7260 5 ай бұрын
Nice!!!!!!
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hope you liked it, the next 2 are even better ;)
@inertiavee31
@inertiavee31 Ай бұрын
Hey I got a slight problem, for some reason the health only updates on death, I followed the steps to a T but it's still happening, any help would be greatly appreciated ☺
@inertiavee31
@inertiavee31 Ай бұрын
HAHHAHAHA NEVERMIND I had the health/max health division in the wrong order
@AliElZoheiry
@AliElZoheiry Ай бұрын
It's always these small things that end up getting us :) Glad you figured it out!
@Supriya_tripathi257
@Supriya_tripathi257 4 ай бұрын
At the last time when he avoid attack of player then after he didn't attack ?why
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
I noticed this happens sometimes because of a bug in unreal engine. Sometimes when I restart the project, some of the behavior tree task values get reset to their default, and that was the case for the one of the tasks, so I just had to set the attack target key to the right value again
@shedbhone6309
@shedbhone6309 5 ай бұрын
I wish one day you will make moba game series bro.🎉🎉😅😅
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
I don't really play moba games, so I might not be the best candidate to create moba games 😂
@shedbhone6309
@shedbhone6309 5 ай бұрын
@@AliElZoheiry thanks bro your tutorial series are good.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
@@shedbhone6309 Thank you so much!
@achuthanarayan7383
@achuthanarayan7383 5 ай бұрын
BRO TAKE A BOW! PLEASE BE MY TEACHER !
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey Achutha, thank you 🙏 I will be everyone's teacher :)
@udoma8
@udoma8 17 күн бұрын
For those in countries where Patreon is not working, how do we make payments, using VPN it works, but how do we make payment to subscribe
@AliElZoheiry
@AliElZoheiry 17 күн бұрын
Hey there! I haven't really considered that. Patreon is the only source of payment I have setup now, I don't know any other way unfortunately.
@udoma8
@udoma8 17 күн бұрын
@@AliElZoheiry hmmm, it's a serious challenge cause I soon need to support you through joining your patreon, plus getting exclusive contents
@patrikondris442
@patrikondris442 2 ай бұрын
4:07 in which video you created the enemy
@AliElZoheiry
@AliElZoheiry 2 ай бұрын
I created the base enemy in the first episode and kept adding to it throughout the entire series
@BAMTUTOR
@BAMTUTOR 5 ай бұрын
Is that the end of this series?
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
There are 2 more videos to complete the boss fight, then I will stop working on the series for a bit, but I will probably come back to it later
@nwhajlawn6224
@nwhajlawn6224 5 ай бұрын
what new series you will start? please don't leave youtube@@AliElZoheiry
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
I haven't decided yet, I have a lot of ideas planned, but didn't pick one so far@@nwhajlawn6224
@kayrawolf4408
@kayrawolf4408 5 ай бұрын
@@AliElZoheiry friendly AI with weapon+combat:)
@TheKBC14
@TheKBC14 5 ай бұрын
No worries, take your time @@AliElZoheiry
@user-xb1jc7lf8x
@user-xb1jc7lf8x 5 ай бұрын
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hello 👋👋👋
I Doubled And Randomized Every Boss in Elden Ring
43:02
Bushy
Рет қаралды 585 М.
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 88 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 26 МЛН
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 4,6 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 185 МЛН
Unreal Engine 5 Tutorial - AI Part 3: Perception System
20:34
Ryan Laley
Рет қаралды 58 М.
How to build a simple combat system in Unreal Engine 5
16:16
Brianko Games
Рет қаралды 980
The Most Common Mistake Beginners Make in Unreal Engine | UE5
12:17
Ali Elzoheiry
Рет қаралды 85 М.
Elden Ring - All Bosses With Cutscenes (NO DAMAGE) [2K 60FPS]
53:09
DarkPlayerBrett
Рет қаралды 3,5 МЛН
I SUCK At Developing Enemy AI. Let's Fix That.
11:43
Intra
Рет қаралды 10 М.
I made an Asmongold Soulslike Game
10:47
anboniwow
Рет қаралды 53 М.
20 Unreal Engine Tips You NEED to know | UE5
8:38
Ali Elzoheiry
Рет қаралды 16 М.
How to Make a Simple Behavior Tree in Unreal Engine 5 - Advanced AI
20:47
Unreal Engine 5 RPG Tutorial Series - #22: AI Melee Attack
17:38
Gorka Games
Рет қаралды 33 М.
Lips are Red or Blue? #shorts
0:45
RKoirala02
Рет қаралды 6 МЛН
Please Help Steve In Lava Pit Challenge
0:31
ToonToon Daily
Рет қаралды 3,6 МЛН
SONIC VS AMY w WYSCIGU
0:30
Śpiący
Рет қаралды 3,7 МЛН