A.I. Chase & Patrol 👉 UE5 Tutorial (the easy way)

Sdílet
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

Komentáře • 163

  • @mattr5413
    @mattr5413 Před rokem +17

    From the pacing, to the tutorial itself this was perfect you covered so much in such a short time great tut

  • @ghostinhell666
    @ghostinhell666 Před 2 lety +4

    Thank you kindly for that video! I learned something super helpful just from watching you do all this! Its a blessing

  • @davidbartlett9060
    @davidbartlett9060 Před rokem +4

    Great Tutorial, really simple and super helpful - Thankyou !! This has SAVED me 🙌🙌

  • @WhatnotArt
    @WhatnotArt Před rokem

    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 ❤

  • @kali.dimmitrova9839
    @kali.dimmitrova9839 Před 2 lety +2

    Exactly the video I needed.Thank you!

  • @reza0310
    @reza0310 Před 2 měsíci +1

    Very well done ! Understood everything !

  • @bedtimestories1065
    @bedtimestories1065 Před 2 lety +45

    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.

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety +9

      Yes they have amazing tools right out of the box!

    • @fuzzypanda1684
      @fuzzypanda1684 Před rokem +2

      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.

    • @rarerex
      @rarerex Před rokem

      @@fuzzypanda1684 it was the opposite for me

    • @fuzzypanda1684
      @fuzzypanda1684 Před rokem

      @@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.

    • @rarerex
      @rarerex Před rokem

      @@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

  • @saif0316
    @saif0316 Před rokem +3

    That was awesome! I finished a tutorial! Thank you!

  • @Bound9433
    @Bound9433 Před rokem +2

    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!

  • @BlixemBlixem
    @BlixemBlixem Před rokem +2

    Brilliant, thanks!!

  • @KANAWA2025
    @KANAWA2025 Před 23 dny

    great job! all working fine! thank for good guide!

  • @nyanyang885
    @nyanyang885 Před měsícem

    Thank you for this much needed video.
    However, within a certain area, a video with zombie sounds is necessary.
    😍😂😍

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

    It worked! thank you!

  • @polishgamedev5201
    @polishgamedev5201 Před 2 lety +4

    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

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

      Awesome! Thx :)

    • @polishgamedev5201
      @polishgamedev5201 Před 2 lety

      @@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

  • @evilgamer6382
    @evilgamer6382 Před rokem +1

    Thank you my brotha...... for da easy tutorial,

  • @_Ya_Baki_Entel_Baki_1
    @_Ya_Baki_Entel_Baki_1 Před rokem +1

    👍 I did and it worked, thanks🙏

  • @beastNick7713
    @beastNick7713 Před rokem +1

    Nice job it helped me a lot

  • @sussyboiz6942
    @sussyboiz6942 Před 7 měsíci

    thanks man, you helped me so much, great video

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

    Thank you so much! would love to see more about this, like to set which animation the AI is doing at a given time.

  • @tzerland
    @tzerland Před 2 lety +5

    Most frightening tut ever 😬
    Thanks for the excellent quality of your tutorials !

  • @colinmalott1270
    @colinmalott1270 Před rokem +3

    You make great tutorials, thank you! Hard to find good ones

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

    Great stuff! Thank you!

  • @oxez-xd
    @oxez-xd Před měsícem

    thanks man ♥

  • @querany
    @querany Před rokem +2

    great tutorial

  • @MoinkAndKilo
    @MoinkAndKilo Před rokem +1

    10/10
    Great job

  • @BenTheDev
    @BenTheDev Před rokem +1

    THANK YOU!!!!!

  • @aleksboboychev
    @aleksboboychev Před 10 měsíci

    Thank you!

  • @lugge1358
    @lugge1358 Před rokem +1

    cool thank you!

  • @autotuts
    @autotuts Před 11 měsíci +1

    bro thanks a lot

  • @sushantpoudel651
    @sushantpoudel651 Před rokem +2

    thank you so much, i was stuck because enemy followed forever.

  • @TR360O
    @TR360O Před rokem

    What option should you select when jou use 'to cast to' in a VR world with a vr player?

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

    Appreciate it works good

  • @mariNo01928
    @mariNo01928 Před rokem

    Cool🎉
    Thx ❤

  • @zocker334
    @zocker334 Před rokem

    How do you do A.I chase for 2D PaperChars ?^^

  • @mmk4937
    @mmk4937 Před rokem

    I am proud to put your channel link in my master's thesis literature

  • @KensireGames
    @KensireGames Před 4 měsíci

    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

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

    Next great video :)

  • @JohnRiversOfficial
    @JohnRiversOfficial Před rokem +1

    thanks for the video!

  • @TheUnspekableKK9470
    @TheUnspekableKK9470 Před 3 měsíci

    he needs to teach us to do this but with patrolling waypoints

  • @dimana7810
    @dimana7810 Před 8 měsíci

    So when I imported the zombie running animation, in the fbx import options it didn’t have the animation tab on it

  • @wolfiedgr8t
    @wolfiedgr8t Před 2 lety +2

    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?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety +2

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

    • @wolfiedgr8t
      @wolfiedgr8t Před 2 lety

      @@BuvesaGameDevelopment Sorry, I should check the channel. Thanks again :)

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

    i really aperciete it

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

    i love your work sir

  • @musjaxe852
    @musjaxe852 Před 8 měsíci +1

    hi i am doing first person horor game and i want to know how can i change enemy like zombie speed

  • @Zarmin.q8
    @Zarmin.q8 Před 10 měsíci

    hello , i didnt found nav mesh bound where can i get it ?

  • @donaldzimmerman8329
    @donaldzimmerman8329 Před rokem +1

    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?

  • @WarnyWarnX
    @WarnyWarnX Před rokem +1

    Really helpful and it works! One question:How do you change the speed?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před rokem +1

      Nice :) From the character movement component you can tweak the 'Max Walk Speed'

  • @PsychoStudiosOfficial
    @PsychoStudiosOfficial Před 5 měsíci

    I have an issue where my character walks really slow, how do u fix it?

  • @BedirKM2
    @BedirKM2 Před 11 měsíci

    Hey zombie always Walks? Can u make it walk only while he patrols ör attacks

  • @tripsy7435
    @tripsy7435 Před rokem

    My persons walking animation makes him move out of us hit box instead of him walking on the spot what should I do

  • @junhadi-ph8tf
    @junhadi-ph8tf Před 28 dny

    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

  • @Espinete87
    @Espinete87 Před rokem

    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.

  • @Kwepso.
    @Kwepso. Před 2 lety +1

    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

  • @thomas_gk513
    @thomas_gk513 Před rokem

    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?

  • @kamilbrawl1218
    @kamilbrawl1218 Před 9 měsíci

    thx bro i subbed u now

  • @dezenttutorials
    @dezenttutorials Před rokem +3

    BRO, THANK YOU SO MUCH! IM MAKING A BACKROOMS GAME AND COULDNT MAKE A MONSTER! YOURE A GOD!

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

    Noice 👍

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

    Hi!
    Do you think you can do a tutorial for a lobby/main menu like the apex legends one?
    I really need one.🤔

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

      Haven't played this game myself but this might be a good starting point: czcams.com/video/vusyzAOK4dg/video.html

    • @Chivu04
      @Chivu04 Před 2 lety

      @@BuvesaGameDevelopment ok,thank you for the help!

  • @MotorsGalore
    @MotorsGalore Před 2 měsíci

    the zombie doesn't stay in the capsule component for me

  • @themaavpage8169
    @themaavpage8169 Před rokem

    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

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

    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

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

      Could be many things, hard for me to guess :) But most made mistake is not adding the correct mesh bound volume.

    • @armi5219
      @armi5219 Před 2 lety

      @@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.

  • @MotorsGalore
    @MotorsGalore Před 2 měsíci

    and it moves when i put the animation strait into the game

  • @nawhz6292
    @nawhz6292 Před 2 měsíci

    best video

  • @thedonzo506
    @thedonzo506 Před rokem +6

    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?

    • @Joshanse111
      @Joshanse111 Před rokem

      I have the same problem

    • @torpid2906
      @torpid2906 Před rokem

      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

    • @Mactwo
      @Mactwo Před rokem

      @@torpid2906 This does fix the enemy randomly losing focus but also makes it so they wont wonder anymore if they lose sight of you

    • @torpid2906
      @torpid2906 Před rokem

      @@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?

    • @Mactwo
      @Mactwo Před rokem

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

  • @christianrichardr
    @christianrichardr Před rokem

    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.

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před rokem +1

      Most likely you didn't add the nav mesh bounds volume :)

    • @christianrichardr
      @christianrichardr Před rokem

      @@BuvesaGameDevelopment I'm going to check it. Thanks a lot.

    • @christianrichardr
      @christianrichardr Před rokem

      @@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.

  • @szil_1012
    @szil_1012 Před rokem

    how would i make the navmesh if i want the ai to be able to go trough open doors

  • @RiverFox_YT
    @RiverFox_YT Před rokem

    another fab tutorial. any idea why my ai crashes to a heap on the floor as soon as i start the game?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před rokem

      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

    • @RiverFox_YT
      @RiverFox_YT Před rokem

      @@BuvesaGameDevelopment yep I fixed it, turns out I was a noob and applied it to the wrong character mesh 😂

  • @ishansingh4005
    @ishansingh4005 Před rokem

    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

  • @ServerAcademy
    @ServerAcademy Před rokem

    Great tutorial! Is there a link to the blueprint?

  • @Stanky2000
    @Stanky2000 Před 2 lety

    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.

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

      Great that the magic kicked in, sometimes happens for no reason ;)

    • @Stanky2000
      @Stanky2000 Před 2 lety

      @@BuvesaGameDevelopment Good ol game development lol. Thanks for this tutorial though. Very very useful!

  • @kost7s769
    @kost7s769 Před rokem

    My player knows where I am without being on his eyesight can someone help me please?

  • @jsstudio3826
    @jsstudio3826 Před rokem +1

    How would I make a idle animation?

  • @republicanthinker5614

    as soon as he sees me he stops patrolling entirely

  • @colbyfox7906
    @colbyfox7906 Před rokem

    can I get the AI to stop the running animation when he’s not moving?

  • @600vibe
    @600vibe Před rokem

    Just stays in place running any help??

  • @DenisZaharenko
    @DenisZaharenko Před 2 lety

    Could you do this with own character and own animations? And chasing music?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

      Yes, this is all possible :)

    • @DenisZaharenko
      @DenisZaharenko Před 2 lety

      @@BuvesaGameDevelopment will you make a tutorial on it?

    • @thamontine
      @thamontine Před rokem

      @@DenisZaharenko Did you watch the video above?

    • @DenisZaharenko
      @DenisZaharenko Před rokem +1

      @@thamontine Idk what you mean but i got a bit more skilled in ue. Meaning i can do that now. :)

    • @thamontine
      @thamontine Před rokem

      @@DenisZaharenko sweet

  • @backroomsvhs1688
    @backroomsvhs1688 Před rokem

    How to make different animations\?
    because when he stops running at me he is running on the spot

  • @tripsy7435
    @tripsy7435 Před rokem

    Ok cool but how do I give him an idle animation

  • @Galimah
    @Galimah Před rokem +1

    Isn´t event tick a bad thing?

  • @leezhieng
    @leezhieng Před rokem

    just wondering why your zombie doesn't have shadow

  • @cmistudios12
    @cmistudios12 Před rokem

    when i serched third person character nothing showed up

  • @JOSUETUBER08
    @JOSUETUBER08 Před rokem

    but how i make idle and run animation for this?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před rokem +1

      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' ;)

    • @JOSUETUBER08
      @JOSUETUBER08 Před rokem +1

      @@BuvesaGameDevelopment Ok thanks!

  • @garrytalaroc
    @garrytalaroc Před rokem +2

    that zombie chasing you is creepy asf

  • @MegaSmithGaming539
    @MegaSmithGaming539 Před 2 lety

    This is awesome! But my zombie wont turn to face me, any ideas?

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

      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

    • @MegaSmithGaming539
      @MegaSmithGaming539 Před 2 lety

      @@BuvesaGameDevelopment thanks man! Keep up the great videos!

  • @sirkatheeditor
    @sirkatheeditor Před rokem

    Um, how can you change his speed?

    • @tripsy7435
      @tripsy7435 Před rokem

      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

  • @last_sun23
    @last_sun23 Před měsícem +1

    Ai isn’t following me

  • @edwardnammur5962
    @edwardnammur5962 Před 2 lety

    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)

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

      For that you have to create a animation blueprint (which is also on my channel, blueprint animation tutorial)

    • @edwardnammur5962
      @edwardnammur5962 Před 2 lety

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

    • @slavetislamic1957
      @slavetislamic1957 Před rokem

      @@edwardnammur5962 eternal praise ? only God is worthy of that

  • @EricYoungVFX
    @EricYoungVFX Před rokem

    move to actor isnt working?
    edit, skipped nav mesh my b lol

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

    I love you

  • @mrmalos4194
    @mrmalos4194 Před 2 lety

    what happens if he gets you?, is there a tutorial for him getting you?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

      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.

  • @uguruysal9124
    @uguruysal9124 Před rokem

    bro they not spining, teleporting AROUND

  • @theslayer9164
    @theslayer9164 Před 2 lety

    he doesnt chase me and yes he can nav everywhere

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před 2 lety

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

  • @Dontgotomyabtpage
    @Dontgotomyabtpage Před rokem +1

    666 likes

  • @JohnRiversOfficial
    @JohnRiversOfficial Před rokem +1

    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

    • @SnakeRex_
      @SnakeRex_ Před 9 měsíci

      BRO THANK YOU SO MUCH

  • @epiclolzvr
    @epiclolzvr Před rokem +1

    this AI has been told to comment this: subscribe to Buvesa Game Development, hes a real life saver 👍👍

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  Před rokem

      A.I. picking up on some good info there haha :D thx ;)

    • @epiclolzvr
      @epiclolzvr Před rokem

      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?

  • @THEGUMP-
    @THEGUMP- Před rokem +1

    great tutorial