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

  Рет қаралды 10,752

Ali Elzoheiry

Ali Elzoheiry

Күн бұрын

Пікірлер: 67
@gamethingstuff
@gamethingstuff 9 ай бұрын
Honestly the Chance and Force Success Decorators are awesome. They can offer you so much control on how the enemy will behave by just changing a few numbers.
@AliElZoheiry
@AliElZoheiry 9 ай бұрын
I'm glad to hear that you found the Chance and Force Success Decorators useful! They can definitely offer a lot of flexibility and control over the behavior of the enemy with just a few adjustments. Thanks for your comment 🙏
@VinoVenitas
@VinoVenitas 7 ай бұрын
Just wanted to make sure to let you know I am loving this series.
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
I'm so glad to hear that you're enjoying the series! Thank you for the positive feedback! 😊 Keep watching for more helpful content.
@kataneproduction7775
@kataneproduction7775 4 ай бұрын
Hi, your tutorials are gold as always ! You making my UE journey really nice and clear to understand. I had the same issue as others. When throwing the axe, it seems to instant collide and then impact the boss. None of the solutions I red in the comments solved it. So I decide to move this attack to BPC_Attacks, using the Magic Spell attack as example to reproduce it with the Axe. Then I add the following steps to do the visible / non visible trick : Get owner, Cast to BP_Enemy_Boss (convert to pure cast), get weapon actor, mesh and it work ! All of this is thanks to you, for the first time, I am able to solve an issue by myself. Consider I started UE5 (and game development) three months ago with your tutorials. And I'm starting to understand what I'm doing. Please keep continuing teaching. You are really good at it. Katane
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
Hey Katane! Thank you for your kind words, I'm really glad to hear that my tutorials are helping you on your UE journey 🙏 It's awesome that you were able to solve the issue on your own! Keep up the great work, and I’ll definitely keep the tutorials coming! 😉
@peterjuee558
@peterjuee558 5 ай бұрын
Wonderful! Thank you for your lessons. Although my project's BOSS is a sci-fi Alien, I still learned much from yours. I have made it crazy.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Thank you for your kind words! I'm thrilled to hear that you found the lessons helpful and were able to adapt them to your sci-fi Alien boss. Keep up the great work! 🙌
@trelaskillz
@trelaskillz 11 ай бұрын
Nice job (again). I had a few issues with my boss focus for some reason. Had to tweak a few things to get it to work but besides that, it was a smooth lesson! Thank you! 🤟
@AliElZoheiry
@AliElZoheiry 11 ай бұрын
Thanks again Trela! Glad to hear that you managed to fix the issue you are facing. Thanks for watching and commenting 🙏
@josephzhou5026
@josephzhou5026 Жыл бұрын
Excellent work, thanks a lot!
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Thank you too! Glad you liked it
@kingswood81
@kingswood81 Ай бұрын
Hi. I must be doing something really stupid here but I can't spot it so hopefully someone can help. At around 19:19 when adding the decorator BTD_Chance to give a 50/50 chance of which combo attack to play, my boss always only plays the first combo attack, never the second. I have set up the BTD_Chance decorator correctly. Min and Max values for the random float in range in BTD_Chance are 0 and 1 respectively, and the percent value for the BTD_Chance decorator in the behaviour tree is 0.5. Out of curiosity I changed the operator in the BTD_Chance decorator to be "=" but it still only played the first combo attack. One thing I did notice which was different was that in the behaviour tree where the BTD_Chance decorator is added to the first BTT_BossAttack node, my BTD_Chance says: BTD Chance: Percent: 0.500000 Log Index Become Relevant: -1 Log Index Cease Relevant: -1 Log Index Calculate: -1 Observing Key Name: None While Ali's BTD_Chance only has the Percent: 0.500000 line. Could that be something to do with it?
@AliElZoheiry
@AliElZoheiry Ай бұрын
Hey! It sounds like you have everything set up correctly based on what you've mentioned. I suggest trying to print the chance value to see what you get, It should only be printing once when the decorator is executed and not on tick. If it's printing on tick, then the decorator is setup incorrectly (meaning that it has an observer aborts value not equal to none, which would break this kind of decorator)
@kingswood81
@kingswood81 Ай бұрын
@@AliElZoheiry Thanks Ali. I have no idea what the issue was, but recreated the BTD_Chance from scratch again for the 4th time and this time it worked. Obviously I must have screwed something up, but no idea what. Asl always, thanks for your tutorials, your feedback, help and advice.
@TheKBC14
@TheKBC14 Жыл бұрын
Awesome video!
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Thank you! Glad you think so 🙏
@edittoz._
@edittoz._ Жыл бұрын
thank you so much i learned a lot from you
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Happy to hear that! I do my best to make sure I teach people instead of just making something to copy and paste
@ps5games821
@ps5games821 Жыл бұрын
thank you very much for tutorials
@AliElZoheiry
@AliElZoheiry Жыл бұрын
You are welcome! Glad you liked them
@TheKr0ckeR
@TheKr0ckeR 5 ай бұрын
What do you think about GAS system? Are you planning to cover GAS in future videos? :)
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey there! Thanks for the suggestion! I do plan to cover Gameplay Ability System (GAS) in future videos, so stay tuned for that. Cheers!
@alraffa5090
@alraffa5090 8 ай бұрын
Hi Ali. Do you mind explaining a bit mre why we need to use that Bind Event ? Its the only aspect of some if your setup that I just cant seem to grasp. Thank you !
@AliElZoheiry
@AliElZoheiry 8 ай бұрын
Sorry which part are you referring to exactly?
@bloededhoine
@bloededhoine 24 күн бұрын
How can we make sure any character can only block when facing the direction of the attack?
@AliElZoheiry
@AliElZoheiry 19 күн бұрын
Hey! To ensure a character can only block when facing the direction of the attack, you could use a dot product between the character's forward vector and the direction of the incoming attack. If the result is above a certain threshold, then allow the block
@Vitingameplays_sniper_pro_360
@Vitingameplays_sniper_pro_360 6 ай бұрын
I ABSOLUTELY LOVED the video! However I had a little problem with the teleporting, I set the movement mode to flying with 5000 flying speed and 99999 acceleration, but my character was slow anyways :(
@Vitingameplays_sniper_pro_360
@Vitingameplays_sniper_pro_360 6 ай бұрын
Found it, it was the deceleration of flying, it was set to 0 and was fixed when I set it to 99999
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
I'm so glad to hear that you liked the video! and glad you fixed the issue as well! Good job
@GlebKruglov-m8z
@GlebKruglov-m8z Ай бұрын
Hello guys! Who has had the problem that the boss keeps colliding with his ax while throwing? Everything works fine with the magician, I have already checked the collision everywhere both in the base projectile and in the boss.
@AliElZoheiry
@AliElZoheiry Ай бұрын
Hey! The axe projectile shouldn't be any different than the others, as long as you call "Ignore actor when moving" (and pass in an owner/instigator) after firing the projectile (just like we did with all the others) then it should work fine 🙏
@erenyarar4517
@erenyarar4517 7 ай бұрын
I don't know why, but the boss does not spawn his "projectile axe" while the axe throwing animation is playing. I checked the name "Throw" and there is no problem (I added BreakPoint and it shows the "Spawn Actor BP Projectile Spinning Axe"), I looked at the Outliner window during the game and no projectile is spawning. What am I doing wrong? (I'm sorry for my bad english)
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Hey there! if the animation is playing, but the action isn't happening, then make sure that the switch statement in the montage is actually executing. Maybe you have a typo in the notify name, or you used an incorrect notify type (e.g regular notify instead of montage notify) in your montage
@erenyarar4517
@erenyarar4517 7 ай бұрын
@@AliElZoheiry Thank you for the answer. I solved the problem. The issue was with the collision settings of "BP Projectile Spinning Axe". It was spawning inside the boss due to a collision block in "BoxCollision". I fixed it by running "Ignore Actor when Moving" in Begin Play, and now it works perfectly. Thanks again!
@vilsaum3dzeiro
@vilsaum3dzeiro 6 ай бұрын
​@@erenyarar4517 thanks man, nice tip. Just adding my 2 cents here, if you are using the "Get Owner" on the "Ignore Actor when Moving" and still isn't working, try to use the "Get Instigator", it worked perfectly here.
@scienceandtorah7668
@scienceandtorah7668 5 ай бұрын
Hi, everything is going good so far; and thanks so much for the tutorials. However for some reason the axe seems to be colliding with the Boss, and then the axe just flies off in a different direction. If you can help me with this, would be greatly appreciated.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey there, not sure what the problem could be, but if you following my projectiles tutorial, then the axe should always ignore the owner that spawned it
@scienceandtorah7668
@scienceandtorah7668 5 ай бұрын
@@AliElZoheiry Ok, I'll check that tutorial again, but thanks anyways for your reply! As always, I really enjoy your tutorials, and looking forward to your future ones!
@muhammadzeeshannaeem1918
@muhammadzeeshannaeem1918 4 ай бұрын
i'm having issue in boss throwing Axe it spawns and damage itself(boss) when i hidden in gamee (boss) then axe hits me please tell me how i can fix this problem
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
You have to make sure the projectile is set to ignore the actor that spawned it when moving, I explain that in my tutorials on how to shoot projectiles
@GlebKruglov-m8z
@GlebKruglov-m8z Ай бұрын
Hi, friend. Did you find the problem? Because I faced the same problem too.
@muhammadzeeshannaeem1918
@muhammadzeeshannaeem1918 Ай бұрын
@@GlebKruglov-m8z just scale down the Axe size , your problem will be fixed
@GlebKruglov-m8z
@GlebKruglov-m8z Ай бұрын
@@muhammadzeeshannaeem1918 Friend doesn't help. Some problems with collision, but I can’t figure out what’s the reason
@vidwardio3202
@vidwardio3202 9 ай бұрын
hi there, @AliElzoheiry, my projectile seems to hit the boss, how should I make the projectile ignore him? If you could give me some suggestions. Thankyou.
@AliElZoheiry
@AliElZoheiry 9 ай бұрын
If you want your projectile to ignore certain actors (go through them) then you should change the collision settings of the projectile box/sphere to "Overlap all dynamic" instead of "Block all dynamic". Then also change the "On Component hit" in the base projectile to "On component begin overlap". With this setup you can have the projectile ignore certain actors when it overlaps them, and hit others
@eddr6124
@eddr6124 10 ай бұрын
my projectile is spawning and after moving a bit its disappearing, its happening like 50% of the time, and other time it works fine, any suggestions what can be the cause?
@AliElZoheiry
@AliElZoheiry 10 ай бұрын
There are 2 possible reasons I can think of why it would disappear. Either you set a short "life span" of the projectile, which causes it to be destroyed after that duration ends. Or it is colliding with something invisible.
@rezaj.mousavi7310
@rezaj.mousavi7310 Жыл бұрын
excellent👌👌👌👌👌
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Thank you! Happy that you liked it 🙏
@nwhajlawn6224
@nwhajlawn6224 Жыл бұрын
i think people don't know that you uploaded these video, that's why views are low😓😓
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Hey Nwha, I haven't released this publicly yet, only the people that are following along the playlist will see it, and you're one of those lucky ones ;)
@nwhajlawn6224
@nwhajlawn6224 Жыл бұрын
OO I SEE 😁, and please make a course, there are many AI tutorial on udemy which are expensive and are lower quality then Your AI tutorial🥲, make a course there are many who will buy it, me too.😊 @@AliElZoheiry
@AliElZoheiry
@AliElZoheiry Жыл бұрын
I really appreciate your support. I'm definitely thinking of making a Udemy course, but I also want to build a community here on KZbin, so I'm still deciding where to focus my efforts
@Neos-g6c
@Neos-g6c Жыл бұрын
I will buy the course as soon as you release it 😃
@AdamMohamed-ji7pk
@AdamMohamed-ji7pk Жыл бұрын
​​@@AliElZoheiryof course I will be one of the first ones to buy your course if you make one Ali. waiting for it ....
@JoMarcos28
@JoMarcos28 Жыл бұрын
Great!
@AliElZoheiry
@AliElZoheiry Жыл бұрын
Glad you liked it ;)
@BallerRecap
@BallerRecap 9 ай бұрын
Hi, Great video's!! Everything works, except for my boss teleport. I have increased the max fly speed and acceleration. But he still teleports very slow. In the tutorial it almost feels like an instant teleport, were in my game it feels like u get chased by the boss.
@AliElZoheiry
@AliElZoheiry 9 ай бұрын
Glad you found it useful! Make sure that you also set the movement mode to flying, because if you just change the flying speed but the movement mode is still “walking” then the enemy is constraint to the max walk speed
@BallerRecap
@BallerRecap 9 ай бұрын
@@AliElZoheiry Thanks, for the comment, I have just copied the teleport function of the mage. The mage is working fine but the boss is still too slow. I checked everything, and its all the same in both blueprints. Maybe i have overlooked something , but i dont see it.
@eurik_523
@eurik_523 9 ай бұрын
I found myself with the same exact probelm. The movement mode was set to flying, and max fly speed and acceleration was set accordingly but still way slower than the boss in the video. I even downloaded and checked the project files that Ali provided in his patreon, but couldn't find difference.. Hope this comment gets updated!
@Vitingameplays_sniper_pro_360
@Vitingameplays_sniper_pro_360 6 ай бұрын
You need to set fly deceleration to 99999 as well
@Vitingameplays_sniper_pro_360
@Vitingameplays_sniper_pro_360 6 ай бұрын
@@eurik_523.
@sxcylla4438
@sxcylla4438 10 ай бұрын
How did u add the player dash/Teleport?
@AliElZoheiry
@AliElZoheiry 10 ай бұрын
This was added in the previous video (Part 20) at this timestamp kzbin.info/www/bejne/qJeQiIuNZsp8arMsi=0B5dM7jjmONpnHWU&t=3840
Smart Enemy AI |  (Part 20: Boss Fight) | Tutorial Unreal Engine 5 (UE5)
1:05:42
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Ultimate GASP V1.7.5
4:18
Ustudio gaming
Рет қаралды 1,9 М.
How to Make a Samurai Film in Unreal 5
12:40
Josh Toonen
Рет қаралды 130 М.
The Beginning Of  A Game Development Journey // DEVLOG #0
8:40
FromNorth Projekt
Рет қаралды 280 М.
I Spent 1 Year Making Games... Here's What Happened
10:06
BadGameDev
Рет қаралды 38 М.
10 Ways to Make Combat Feel Better in Unreal Engine | UE5 Tutorial
8:36
Dante and Vergil's colloquy (2024 Christmas Special)
14:11
Recreating Hades Dash in Unreal Engine 5 | Games Dissected
28:49
Ali Elzoheiry
Рет қаралды 13 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН