A.I. Chase & Patrol 👉 UE5 Tutorial (the easy way)
Vložit
- čas přidán 6. 07. 2024
- 💡 Download The FREE GameDev Tools Here: 👉 buvesa.com/free
✔️ Free GameDev E-book
✔️ Free Game Design Document
✔️ Free Platformer Course (UE5)
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🏆 Join My Premium UE5 Course (The Unreal Vault) 🏆
👉 Link: buvesa.com/course
🗸 Full GameDev proces
🗸 Level design
🗸 Boss Fights
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
📱 SOCIALS 📱
CZcams ► / @buvesagamedevelopment
Instagram ► / buvesagamedevelopment
TikTok ► / buvesagamedevelopment
Twitter ► / buvesa
Itch.io ► buvesagamedevelopment.itch.io
🔔 Subscribe! 🔔
Subscribe ► / @buvesagamedevelopment
☝️ In this unreal engine 5 tutorial you will learn how to let a A.I. zombie chase you around the map. If he's not chasing, he will patrol around until he finds you and chases you once more.
First we will create a simple moveto actor, then add pawnsensing and finally the patrolling so you can create the type of A.I. chasing and patrolling you need for your UE5 game. This is the easy way to do this, no behaviour tree needed. Perfects for beginner A.I. to follow along with this tutorial.
Subscribe: / @buvesagamedevelopment
#unrealengine #gamedevelopment #Buvesa
From the pacing, to the tutorial itself this was perfect you covered so much in such a short time great tut
Thank you kindly for that video! I learned something super helpful just from watching you do all this! Its a blessing
Great Tutorial, really simple and super helpful - Thankyou !! This has SAVED me 🙌🙌
This tutorial is AWESOME 👏🤟 thank you SO MUCH for this, I’ve been looking for a tutorial that doesn’t make you pay for stuff or use a ton of fancy tools. It sticks to the point and makes it easy to understand ❤
Exactly the video I needed.Thank you!
Very well done ! Understood everything !
Can't get over the amount of tools Unreal Engine provides. This would be so much more work in Unity. I'll always love Unity but it's time I give UE5 a go after years of using Unity lol.
Yes they have amazing tools right out of the box!
Really? I found basic AI pretty simple in Unity. Honestly, I think Unity is far more beginner friendly than Unreal.
It took me only a week or so to feel comfortable in Unity whereas Unreal took me several months. But Unreal is a lot more powerful and has a lot more practical applications so I forced myself to learn it.
@@fuzzypanda1684 it was the opposite for me
@@rarerex Seriously? That's crazy. Both are equally easy for me to use now but the learning curve on Unreal was...well unreal lol. I think blueprints were hard for me to wrap my head around and many of the systems were overwhelming, with menus inside of menus with a bazillion options.
@@fuzzypanda1684 i pretty muched forced myself to spend like 4-5 hours a day for a week or two praticing using blueprints and unreal until i had a pretty decent understanding, super glad i did though. but personally, i did still find it more fun and easier than unity
That was awesome! I finished a tutorial! Thank you!
I was so confused why my AI wasnt working but then i watched this video, Scrapped all of my previous nodes and it worked lol thank you!
Brilliant, thanks!!
great job! all working fine! thank for good guide!
Thank you for this much needed video.
However, within a certain area, a video with zombie sounds is necessary.
😍😂😍
It worked! thank you!
Bro That Helped so much, i tried doing the patrol and chase system for over a week with the help of some youtube tutorials that didn't work, but your tutorial helped me alot. I can't wait to see your channel grow-up
Awesome! Thx :)
@@BuvesaGameDevelopment Also, could you please try to make a tutorial on how to lock the Ai so it won't walk out of the Nav mesh? I'm making a stealth game and there is this bug where when the enemy chases us there is a chance that he walks out of the nav mesh and it's kinda breeaking the game
Thank you my brotha...... for da easy tutorial,
👍 I did and it worked, thanks🙏
Nice job it helped me a lot
thanks man, you helped me so much, great video
Thank you so much! would love to see more about this, like to set which animation the AI is doing at a given time.
Animation blueprints are also on the channel but more in the future :)
Most frightening tut ever 😬
Thanks for the excellent quality of your tutorials !
Thx! :)
You make great tutorials, thank you! Hard to find good ones
Thx! Doing my best ;)
Great stuff! Thank you!
Thanks!
thanks man ♥
great tutorial
10/10
Great job
THANK YOU!!!!!
Thank you!
cool thank you!
bro thanks a lot
thank you so much, i was stuck because enemy followed forever.
What option should you select when jou use 'to cast to' in a VR world with a vr player?
Appreciate it works good
Thx ;)
Cool🎉
Thx ❤
How do you do A.I chase for 2D PaperChars ?^^
I am proud to put your channel link in my master's thesis literature
Cool :)
Hey im using this for a partner Ai it worked in the past for my ai partner but i doesnt work anymore but it still works for the enemies any advice? Great video
Next great video :)
thanks for the video!
he needs to teach us to do this but with patrolling waypoints
So when I imported the zombie running animation, in the fbx import options it didn’t have the animation tab on it
Excellent stuff, thanks so much.
Will you be expanding on this like adding health system for both player and AI?
Adding attack damage for both player and AI?
Adding attack/death animation for both player and AI?
Thx! I have different video's on this channel about health & damage and animation blueprints. Hope these can help your project. It's in this channel already :)
@@BuvesaGameDevelopment Sorry, I should check the channel. Thanks again :)
i really aperciete it
i love your work sir
Thank you!
hi i am doing first person horor game and i want to know how can i change enemy like zombie speed
hello , i didnt found nav mesh bound where can i get it ?
My AI follows the player but does not rotate towards them so they might just be moving backwards or to the side. Anyone else have this? any fixes?
Really helpful and it works! One question:How do you change the speed?
Nice :) From the character movement component you can tweak the 'Max Walk Speed'
I have an issue where my character walks really slow, how do u fix it?
Hey zombie always Walks? Can u make it walk only while he patrols ör attacks
My persons walking animation makes him move out of us hit box instead of him walking on the spot what should I do
Hi i used this tutorial last year for UE5.1 and it worked. Yesterday i used for UE5.2 and there was problem that the avatar downloaded from Mixamo cannot move. The message on import was that the 30 fps frame rate was incompatible. I tried 60 fps also failed. Would anyone know a solution to this? Please help
hello, when i unpack them i dont find the animation file, i think is not there or something have changed, or the new versions of unreal doesnt work with this files :S any suggestion?
I have few errors:
No smoothing group information was found in this FBX scene. Please make sure to enable the 'Export Smoothing Groups' option in the FBX Exporter plug-in before exporting the file. Even for tools that don't support smoothing groups, the FBX Exporter will generate appropriate smoothing data at export-time so that correct vertex normals can be inferred while importing.
Animation Stack Take 001 does not contain any valid key. Try different time options when import.
Hey, thanks a lot for your videos, got a quick question, how do i unhide my world outliner tab? I cannot find it on the side anymore so it is limiting my work, i would really appreciate it if someone could help me
Click on Window (in the menu on top) and click outliner :)
When I did the thing where it chases you after it sees you it messes up something and then the patrolling doesnt work, any help?
thx bro i subbed u now
BRO, THANK YOU SO MUCH! IM MAKING A BACKROOMS GAME AND COULDNT MAKE A MONSTER! YOURE A GOD!
Np ;)
That's blasphemous.
Noice 👍
Hi!
Do you think you can do a tutorial for a lobby/main menu like the apex legends one?
I really need one.🤔
Haven't played this game myself but this might be a good starting point: czcams.com/video/vusyzAOK4dg/video.html
@@BuvesaGameDevelopment ok,thank you for the help!
the zombie doesn't stay in the capsule component for me
this works well however if you're using 2 or more main characters in your game, Cast to BP_ThirdPersonCharacter is not going to work because it will only follow the character you cast. It won't follow your other character if you swap to him
You can use a tag instead and put that tag on your main characters
Hey thanks for the video!
Do you have any idea why it works on every project but not works on one spesific project?
Only my character moves, ai not moves. I dont know why
Could be many things, hard for me to guess :) But most made mistake is not adding the correct mesh bound volume.
@@BuvesaGameDevelopment Thanks for the answer.
Yeah İt must be something about navigation, other actions works well. Probably mesh bound volume doesnt works. I am very grateful of your content keep up the great work.
and it moves when i put the animation strait into the game
best video
Enjoyed this tutorial immensily but 1 problem!
Even if I'm in his chase radius, he randomly leaves , It should be that as long as the main character is in his radius he'll never stop chasing
Any solutions?
I have the same problem
You have probably fixed it by now, but I had the same problem and the solution for me was to remove the set value variable for see player? that was linked to Then 1 on the sequence
@@torpid2906 This does fix the enemy randomly losing focus but also makes it so they wont wonder anymore if they lose sight of you
@@Mactwo damn your right, I never noticed because I made my ai have high peripheral vision so it was impossible for him to ever lose sight of you. Do you have any solutions?
@@torpid2906 unfortunately I’m very new to unreal and game design in general so I haven’t managed to figure it out myself. I’ll definitely let you know if I do though !
Hi, thanks a lot for this video, I have a question, the zombi I have in my game is nos following the main character, what could it be the problem? Thanks a lot.
Most likely you didn't add the nav mesh bounds volume :)
@@BuvesaGameDevelopment I'm going to check it. Thanks a lot.
@@BuvesaGameDevelopment Thanks a lot, it work with that, just an other question, when I put escape from the game, the nav mesh disapear, how can I fix that? Thanks again.
how would i make the navmesh if i want the ai to be able to go trough open doors
Its still the same navmesh. Just make the opening big enough ;)
another fab tutorial. any idea why my ai crashes to a heap on the floor as soon as i start the game?
Could be a lot of possible things: if you followed these steps correctly, there could be an error with a certain model of yours or the physics assets assigned to that model
@@BuvesaGameDevelopment yep I fixed it, turns out I was a noob and applied it to the wrong character mesh 😂
I have a problem that the AI when he sees me is just following and he does not switch back to patrol
EDIT- Sorry it was my mistake i used event begin play instead of event tick
Great tutorial! Is there a link to the blueprint?
i think no
So im following along and at 3:58 you click into Event Graphs. When I do that, Blueprint comes up as read only mode and it won't let me edit anything. A quick Google search hasn't brought up anything, do you know how to get around this?
Edit:It's magically working now lol Idk what I did.
Great that the magic kicked in, sometimes happens for no reason ;)
@@BuvesaGameDevelopment Good ol game development lol. Thanks for this tutorial though. Very very useful!
My player knows where I am without being on his eyesight can someone help me please?
How would I make a idle animation?
i have different videos about that on my channel ;)
as soon as he sees me he stops patrolling entirely
can I get the AI to stop the running animation when he’s not moving?
Yes, check for 'blueprint animation' on my channel
Just stays in place running any help??
Could you do this with own character and own animations? And chasing music?
Yes, this is all possible :)
@@BuvesaGameDevelopment will you make a tutorial on it?
@@DenisZaharenko Did you watch the video above?
@@thamontine Idk what you mean but i got a bit more skilled in ue. Meaning i can do that now. :)
@@DenisZaharenko sweet
How to make different animations\?
because when he stops running at me he is running on the spot
look on my channel for animation blueprint, that's how it's done ;)
@@BuvesaGameDevelopment thank you
Ok cool but how do I give him an idle animation
czcams.com/video/yj04QBEjc38/video.html&lc=UgwMd4TUUdfcZoWfFtF4AaABAg
Isn´t event tick a bad thing?
Don't use it to much ;)
just wondering why your zombie doesn't have shadow
when i serched third person character nothing showed up
but how i make idle and run animation for this?
Add an animation blueprint with blendspace to your A.I. Character. I have a video of this on my youtube channel. Type in 'animation blueprint' ;)
@@BuvesaGameDevelopment Ok thanks!
that zombie chasing you is creepy asf
Yes :D
This is awesome! But my zombie wont turn to face me, any ideas?
Could be multiple things, check your AI pathing with 'p' in the viewport, make sure you didn't miss any settings or nodes. Or retry it, could be a small error
@@BuvesaGameDevelopment thanks man! Keep up the great videos!
Um, how can you change his speed?
I just had this problem you go onto moment mesh you don’t need to change max exelirqtoin but the ones below you do if you want a video on it search hot to make the player slower then just copy it onto the ai it works for making it faster
Ai isn’t following me
How do you mix two animations for this Tutorial?
I want my Patrol AI to have walking AND Running animation once he spots me.
(I already have a separate Walk and Run Animation that works for my Patrol)
For that you have to create a animation blueprint (which is also on my channel, blueprint animation tutorial)
@@BuvesaGameDevelopment I've poured through HOURS of info from other tutorials and they gave me close BP's for what i needed. But the one you recommended me was EXACTLY what I needed to fix.
Thank you so much! I was bit frustrated for a few days on looking for this specific Animation BP tutorial from any youtuber. You've definitely got my subscription and eternal praise!
@@edwardnammur5962 eternal praise ? only God is worthy of that
move to actor isnt working?
edit, skipped nav mesh my b lol
I love you
♥
what happens if he gets you?, is there a tutorial for him getting you?
It can be wathever you want :) For example: you can give him a box colission and upon actor overlap you can deal damage or spawn a game over screen.
bro they not spining, teleporting AROUND
he doesnt chase me and yes he can nav everywhere
Then there still might be a step missing, check if all right nodes are connected or try again step by step. Hard for me to see from here :)
666 likes
NOTE: make sure you dotn have the event tick move to actor still enabled after creatign the pawn sensing event ; lol the event tick will cancel out the sight radius etc
BRO THANK YOU SO MUCH
this AI has been told to comment this: subscribe to Buvesa Game Development, hes a real life saver 👍👍
A.I. picking up on some good info there haha :D thx ;)
also is there a way to add stuff like if the ai is close enough to you or something they send you to a main menu level or some dying mechanic?
great tutorial