Тёмный

AI Catches Player | Animation And Restart Game - Unreal Engine 4 Tutorial 

Matt Aspland
Подписаться 80 тыс.
Просмотров 32 тыс.
50% 1

Hey guys, in today's video, I'm going to be showing you how to play an animation when the AI catches you. In this, the player will spin round to face the AI, the AI will play an animation, and the screen will fade to black before restarting.
AI Chase: • AI Sight Detection And...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:13 - Overview
00:48 - Tutorial
13:08 - Final Overview
13:25 - Outro
___________________________________________________________________________
My Public Video List: trello.com/b/7vJgXzBm
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :)
___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 120   
@SolAshur
@SolAshur 3 года назад
"By order of the Jarl, stop right there! You have committed crimes against Skyrim and her people. What say you in your defense?"
@KGCofficial7
@KGCofficial7 3 года назад
I just installed ue4 and was so confused on which types of tutorials to watch then.... I found you, your the best tutorial youtuber guy. Now I have a roaming, chasing and catching ai in my horror game!
@MattAspland
@MattAspland 3 года назад
That's great to hear mate, happy to hear that I can help out! All the best of luck with your learning mate! :)
@simondelguste
@simondelguste Год назад
Thank you so much for your great work and all these videos ! You helped a lot of us while we were learning ! Best regards !
@jeshiabood6752
@jeshiabood6752 3 года назад
Amazing just Amazing keep doing what your doing
@stevenwynn819
@stevenwynn819 3 года назад
Now we can all play virtual tag. Thanks for another excellent tutorial.
@MattAspland
@MattAspland 3 года назад
That sounds like great fun Steve! Cheers :)
@suppliedcoot
@suppliedcoot 3 года назад
Hey you did my suggestion! Thanks!
@MattAspland
@MattAspland 3 года назад
No problem mate! It's a pleasure :)
@abdullahsohail5395
@abdullahsohail5395 3 года назад
Yo bro u made really nice video 😊 keep making awesome videos
@MattAspland
@MattAspland 3 года назад
Thank you so much man!
@aleksboboychev
@aleksboboychev 10 месяцев назад
Thank you!
@ainsleymayers8271
@ainsleymayers8271 3 года назад
Your videos have been a life saver for my Uni project, they're so condensed and easy to follow!
@MattAspland
@MattAspland 3 года назад
Thanks so much man, so happy I could help out! All the best with your project!
@BenTheDev
@BenTheDev Год назад
THANK YOUUU!!!!
@alexjr977
@alexjr977 3 года назад
Thank you for helping me for making a lite weight horror game :)
@MattAspland
@MattAspland 3 года назад
No problem at all Alex, happy to help :)
@stalp0pp
@stalp0pp 3 года назад
This video series should be called "How to make Hello Neighbor AI" 😂😂😂 Good video
@MattAspland
@MattAspland 3 года назад
Hahaha very true lol Cheers mate! :)
@wolfiedgr8t
@wolfiedgr8t 3 года назад
I love the fact the AI turns the character, nice touch Matt.
@MattAspland
@MattAspland 3 года назад
That's great to hear,, cheers man :)
@abefunworld2522
@abefunworld2522 2 года назад
Yeah, it's like it wants you to see the thing that will end you.
@ShabbySaiyan
@ShabbySaiyan 7 месяцев назад
Does the AI also stop the player movement?
@murgaming9835
@murgaming9835 2 года назад
Not because i want to be a good person but you actually deserve more subs. U just got 3 subs from my 3 accounts :)
@g-dojjo
@g-dojjo 3 года назад
Thanks bro!
@MattAspland
@MattAspland 3 года назад
My pleasure!
@Udara1801
@Udara1801 3 года назад
Brother, in the next video can you take videos about the thired person gun system? This video is also very clear and it is 100% functional!plz
@tableprinterdoor
@tableprinterdoor 3 года назад
thank you!
@MattAspland
@MattAspland 3 года назад
No problem mate!
@surreality2008
@surreality2008 3 года назад
Thanks for this video. I set up the code in my third person project but I'm having problems. When the Ai catches the player, it snaps to first person and I can't see the attack animation. btw, I also have your random roam and mouse wheel camera zoom (in character BP) integrated from your other tutorials. Could that be a affecting it? I also had the camera idles spin and free look built in but I disabled them as I was trying to find the source of the problem. Disabling them didn't seem to fix the problem. Also, when I finally do get the zombie attack animation to show, how can I add a responding animation for my character? For example if the Ai zombie attack animation plays, it would be nice to have the character respond by a stagger animation or something to that effect. Thank you so much for sharing such great tutorials! Always nice to see what you come up with next.
@Noobsed
@Noobsed 2 года назад
You should also add disable input with the target (your player) after set actor rotation
@ManlyTube
@ManlyTube 2 года назад
That is the best thing to do. That’s what I’m doing with my Hello Neighbor fan game
@Noobsed
@Noobsed 2 года назад
@@ManlyTube 👍
@aleksboboychev
@aleksboboychev 10 месяцев назад
Thank you!
@jonfinn8832
@jonfinn8832 2 года назад
Could incorporate a tutorial using this as more of a jump scare? I have most of it worked out like where the player will snap to look at the bad guy however it gets a bit difficult to have a jump scare if my characters at a higher elevation than the bad guy
@chadrat5129
@chadrat5129 Год назад
this is a really good tutorial yall but i have one question how could i make the enemy and the player play an animation?
@studiobaxter1242
@studiobaxter1242 Год назад
Very cool, thanks. I'm a total noob to unreal and programming in any form, so I can't say I understand much of this yet, but it works and I'm learning little bits at a time. Great work. Loving your tutorials.
@germaroonie
@germaroonie 8 месяцев назад
Hi! Great video, i just have a couple questions. How could i make different animations for different circumstances? for example i need 4. 1 is when looking at the enemy standing, 2 is when looking away like the video standing, and 3 and 4 when im crouched looking away and at. How could i do that?
@neyverh123
@neyverh123 2 года назад
This tutorial was awesome But I hope I can ask a question like. What if I want the player to take one hit damage then I want to be able to run away so when he hit you again it can be game over how would I go by implementing something like that to this. or should I say would it work if I decide to implement something like that?
@auragaming2776
@auragaming2776 3 года назад
can i use spawn and posses in place of open level ?. will it work ?
@JacksonMerril16
@JacksonMerril16 3 года назад
Hey is there a way to lock the camera onto the AI and play a sound effect too?
@eggzacklee
@eggzacklee 3 года назад
can i make so that when i get caught i get a game over screen that lets me go back to main menu or to restart and how much tweaking does it take?
@GamerDevXD
@GamerDevXD 2 года назад
hey matt question there's an issue were my player will face front instead of the enemy Ai Any fix?
@foxysanseverything
@foxysanseverything 6 месяцев назад
Do you have one for ue5 im making a game and i dont know how to make a jumpscare like fnaf sb in ue5 using a behaver tree
@henriquegraca825
@henriquegraca825 2 года назад
I have been learning a lot from your tutorials, but for the first time, I need some help. The AI still catches me if I am hidden inside the locker or below the bed. It cames near me, and restarts the game, even if I am hidden. Could you please help me?
@gamingarc1067
@gamingarc1067 2 года назад
I really need some help. For some reason, the enemy turns away from me when he gets me. I have your roam code, chase code, and now I have this code. Can’t figure this out, can anyone help?
@traygaming8748
@traygaming8748 2 года назад
So I have this issue where when i get cough it turns me around and quickly repeats the animation and blue affect and they never complete the anim or blur
@ASTRAL15293
@ASTRAL15293 5 месяцев назад
What i can do if i havent a ''default'' node of my anim BP?
@redwolf831
@redwolf831 2 года назад
I have two questions how can I make it to the Jumpscare is not so close to The third person and also when he’s chasing me he’ll randomly run away well I’m obviously in his line of sight
@sebixxs7967
@sebixxs7967 Год назад
I have a problem. I followed this tutorial and the one to hide in locker. When i hide in locker the ai still catches me even if im hiding. How do i disable the normal player catch when hiding?
@BullyDenson4
@BullyDenson4 2 года назад
Hey Matt, if you notice on your video 13:13 when the Anim montage is triggered for the first time it plays for fraction of seconds and stops and triggers the Anim montage again. This is because we have called the Anim montage twice (First when it flows from Catch player event and then second time is from rotation loop event). I'm figuring a way for this to play only once.
@AbhinavChemikala
@AbhinavChemikala 2 года назад
Did you figured it out? i am also having same issue
@redwolf831
@redwolf831 2 года назад
Did you figure this out?
@TwinZ03PGK
@TwinZ03PGK Год назад
Is there’s a way when the ai catch you the player you get spawned in another area or the ai grab you and take you somewhere like jail could you make a video thanks love what you do 🔥
@BlackPandaaa974
@BlackPandaaa974 Год назад
need help with the cathing system because my ai is catching upstairs when it is downstairs and is attacking my door actor
@ShabbySaiyan
@ShabbySaiyan 7 месяцев назад
So would it work in first person
@dr.plague7090
@dr.plague7090 3 года назад
2:59 saving my spot
@piotr8880
@piotr8880 2 года назад
thank you for these tutorials, i followed the character random roam and chase tutorial which worked perfectly for my maze game but I'm wondering how I could make it so when the ai touches the player a jumpscare appears and the player teleports back to spawn.
@user-kp9kz5qn2v
@user-kp9kz5qn2v 3 года назад
The monster's attack animation doesn't work. What on earth should I fix?
@truonggiangleho4906
@truonggiangleho4906 Год назад
Where is roam location components? i didn't see it at previous lession
@neyverh123
@neyverh123 2 года назад
I would like to know How do I reset the camera so the player doesn't get stuck just looking at the enemy?
@violet102
@violet102 2 года назад
How could I make it so the player character also plays an animation?
@georgeastafyev1279
@georgeastafyev1279 Год назад
Everything works great, thanks so much, but is there a way to disable the movement of the character, just before the animation of catching, as when the player runs away the AI cannot play the animation as it is constantly moving away.
@Martin-lf6vd
@Martin-lf6vd Месяц назад
I spend some time try to figure it out. So you can set lower player speed, it sometimes work, but its not always possible or practical. Better option for my case at least was to set Acceptable Radius in AI Move To node to 100 and it seems to work perfectly.
@Hellobru123
@Hellobru123 Год назад
Its better if you add a box colider for catching, its much faster and better
@Dias_12
@Dias_12 7 месяцев назад
Im having trouble with the animation, cause i cant retarget the zombie attack to the Unreal Skeleton, can someone help me?
@C1ayz
@C1ayz 3 года назад
hi i want to the the same idea but th health go less not restart
@RAY_EN_DEV
@RAY_EN_DEV 3 года назад
Thx thx thx to you you saved me
@MattAspland
@MattAspland 3 года назад
No problem mate, happy to help!
@RAY_EN_DEV
@RAY_EN_DEV 3 года назад
@@MattAspland but sad that didn t work
@MattAspland
@MattAspland 3 года назад
@@RAY_EN_DEV Ah okay, which part didn't work for you?
@RAY_EN_DEV
@RAY_EN_DEV 3 года назад
@@MattAspland rotation
@RAY_EN_DEV
@RAY_EN_DEV 3 года назад
@@MattAspland i know now why because i did everything wrong cast to first car and every dekay is 2
@annugamer24
@annugamer24 24 дня назад
hey i want my ghost to make the player go in revive state rather than being restarting the level please help
@lz4090
@lz4090 3 года назад
Nice. Do you have a tutorial where in an AI attacks a player in FP view and tries to get hold of the player so you have to press a button to punch or get away from their hold? hehe Thank you
@MattAspland
@MattAspland 3 года назад
Hi mate, I don't think I have anything specific to that, but I can maybe add it to my list
@mathieuvart
@mathieuvart 3 года назад
@@MattAspland It would be so great. It is what I am looking for and with UE4 I am kind of a noob.
@redbullXfight3r
@redbullXfight3r Год назад
My AI wont play the animation but ive followed everything he did... Any help?
@oxez-xd
@oxez-xd 29 дней назад
how to make this in multiplayer ?
@thelaw9937
@thelaw9937 3 года назад
Hey matt, i have a question where do i look if i want the ai to attacks the player once he receives damage only, do i need to setup a behavior tree for that? I think its called ai damage sense
@MattAspland
@MattAspland 3 года назад
Hey mate, a behaviour tree would work for that yep. Or what you could do is have a Boolean called "CanAttack?" By default, set this to false. Once the AI receives damage, you can set this to be true. If it is true, then the AI can attack. You can do this by either telling the AI to attack the player after being hit, or have the code there already, for example sight detection, but start it with a branch with the condition of "CanAttack?" and only come out of the true. Hope this helps :)
@thelaw9937
@thelaw9937 3 года назад
@@MattAspland thanks ill try it soon!
@MattAspland
@MattAspland 3 года назад
@@thelaw9937 Nice one, no problem mate!
@Hellobru123
@Hellobru123 Год назад
You never did a "Potral" Last vid?
@Salad-Gamer
@Salad-Gamer 7 месяцев назад
9:09 patrol catch
@blcxero
@blcxero 3 года назад
Hey mate, ty for this tutorial. I have got some issues. I want to disable movement for character when AI catch up the character. Can u help?
@MattAspland
@MattAspland 3 года назад
Hey mate, no worries! Of course, where we have the "Catch Player" custom event, or off of "On Success" for your AI Move To, we'd want to cast to our character and "get character movement", then out of that "disable movement". Then when you want to re-enable movement again, out of the character movement, you'd want to get "Set Movement Mode" and set it to "Walking". Hope this helps :)
@blcxero
@blcxero 3 года назад
​@@MattAspland Its working succesfully. Ty bro
@MattAspland
@MattAspland 3 года назад
@@blcxero Great to hear, no problem mate
@jtwafflez6567
@jtwafflez6567 2 года назад
@@blcxero how did you do it because when i did it, it did not work
@EgyLoRaX
@EgyLoRaX 2 года назад
@@MattAspland when i cast to the character what should the 'OBJECT' be?
@TheAmazingPeterB
@TheAmazingPeterB 10 месяцев назад
0:38 it’s funny you say that because I am doing that
@1.1st
@1.1st Год назад
When enemy catch how i make him respawn not me ??
@syahidbaddry3009
@syahidbaddry3009 3 года назад
hey for next video can you make enemy will spawn and hunt player after open the door and a some music
@MattAspland
@MattAspland 3 года назад
Hey, I have two videos which might help you out there. I have one on an AI opening a door, and also chasing with music. Let me know if this helps :) AI Opens Door: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-b6_Dbsa1QA0.html Chase With Music: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-O88PwLAYAoc.html
@syahidbaddry3009
@syahidbaddry3009 3 года назад
@@MattAspland i mean not like that,so when players open the door with key or something and enemy will spawn at somewhere and will hunt player
@MattAspland
@MattAspland 3 года назад
@@syahidbaddry3009 Ah right okay sure, I can add that to my list. I believe it would be as simple as "Spawn AI From Class" with your AI in the class, with the location you want, and you can do this on the code for opening the door.
@actuallygameon
@actuallygameon 2 года назад
It dosen’t work for me :(
@user-6103
@user-6103 4 месяца назад
6:54 thought it said player camera montage ☠
@1.1st
@1.1st Год назад
My player still can moving when catch animation start ⚠️ How do I control the animation application distance when the enemy approaches ⚠️
@mackdiamond5805
@mackdiamond5805 Год назад
doesnt work for me ai cant catch me
@xrhuanLindo
@xrhuanLindo 5 месяцев назад
But i wanna make a image
@0range180
@0range180 2 года назад
Hello, for some reason the AI can still grab me through walls
@ciarangaming7563
@ciarangaming7563 2 года назад
Same
@thevengeance9999
@thevengeance9999 2 года назад
how to change the icon of the game sir
@MattAspland
@MattAspland 2 года назад
You can watch this video here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LjCQO5WGQMs.html
@thevengeance9999
@thevengeance9999 2 года назад
@@MattAspland thank you
@user-oi6nc2bv1f
@user-oi6nc2bv1f 2 месяца назад
9:47 just for me. Don't mind it.
@Salad-Gamer
@Salad-Gamer 7 месяцев назад
8:20
@astroshipt4261
@astroshipt4261 Год назад
would've been better if there was a death screen before the game restart
@ManlyTube
@ManlyTube 2 года назад
When I did the reset I did load level 😂 I’m kinda stupid
@MegaSmithGaming539
@MegaSmithGaming539 Год назад
Anyone having an issue where no matter where you are your character get caught?
@screenapple1660
@screenapple1660 Год назад
This is only good for horror video game.... KAREN lady attack you.
@ASLO2115
@ASLO2115 6 месяцев назад
8:13
Далее
Would you help?!😳
00:32
Просмотров 6 млн
Learning Unreal Engine in One Month to make a Game!
15:25
A.I. Chase & Patrol 👉 UE5 Tutorial (the easy way)
10:41
Why Kung Fu Panda 2 is a Worthy Sequel
26:19
Просмотров 1,4 млн
Why Solo Developers Should Use Unreal
10:55
Просмотров 331 тыс.