How to code SMARTER A.I. enemies | Unity Tutorial

How to code SMARTER A.I. enemies | Unity Tutorial

This is GameDev

1 год назад

48,109 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@this-is-gamedev
@this-is-gamedev - 02.04.2023 17:39

I realised that I had modified the StateMachine class and added a GetGizmoColor that I don't show in the video. This to make it easier to debug, so do as you please. Here is the code that would go into StateMachine.cs:

public Color GetGizmoColor() {
if (currentState != null) {
return currentState.GizmoColor();
}
return Color.grey;
}

Ответить
@iliagusarov8662
@iliagusarov8662 - 26.11.2023 20:06

What should I do, if I have a big open world? Or I can do the same stuff?

Ответить
@sklintergames6662
@sklintergames6662 - 06.11.2023 01:02

Great tutorial , thanks 🎉

Ответить
@flixlcookie8222
@flixlcookie8222 - 04.11.2023 14:54

Hey! Great Video but when using this in my schoolprojekt i've run into some troubles. In my scene everything works just fine but as soon as i put the enemys into the main scene they move around for no reason at all. Even when put in the coverstate from the beginnig on they start spinning and moveing around the map. Is there any way you could help me out with this problem?

Ответить
@DionteHelm
@DionteHelm - 03.11.2023 17:36

This was really informative. Thanks man.

Ответить
@RSilva-ic8qv
@RSilva-ic8qv - 24.10.2023 17:23

hello , can you help me ? i cant find the link for the bullet tracer ...

Ответить
@squirrelzar
@squirrelzar - 24.10.2023 07:35

Overall a useful tutorial- but it would have been better to see it more compartmentalized. Adding all the animations and such in complicates what was the interesting part of the video which is the enemies behavior.

Ответить
@praisethesun2612
@praisethesun2612 - 15.10.2023 18:59

Thanks!

Ответить
@everythingcouldbesimplify818
@everythingcouldbesimplify818 - 29.08.2023 09:16

Learn Animancer and you will never want to look back to animator ever again

Ответить
@androvictrayo-dy7eh
@androvictrayo-dy7eh - 05.08.2023 16:14

This is a fantastic tutorial

Ответить
@faded87
@faded87 - 10.07.2023 23:41

Will this work with multiplayer like photon

Ответить
@LagowiecDev
@LagowiecDev - 08.07.2023 21:56

Thanks for making tutorial for noob like me! :D

Ответить
@thebestcelep6358
@thebestcelep6358 - 08.07.2023 13:50

High quality!

Ответить
@VOR4DORS_RAVEN
@VOR4DORS_RAVEN - 07.07.2023 07:11

would any of this work/apply in a VRChat world?

Ответить
@follyscrolly1345
@follyscrolly1345 - 29.06.2023 10:40

onto my 30th time watching the vid done everything but for some reason the states stop switching after going grey 😥

Ответить
@user-dw5ku8bq3z
@user-dw5ku8bq3z - 16.06.2023 12:01

Very good but I can't add nav mesh because I haven't AI in my Unity
What's your version of Unity


Is it possible with version (2022 ,personal)?

Ответить
@user-dw5ku8bq3z
@user-dw5ku8bq3z - 16.06.2023 11:57

What is your version of Unity? I am using Unity version (2022, personal) I don't have AI please help me

Ответить
@vladaslittleparadise4402
@vladaslittleparadise4402 - 11.05.2023 00:44

is there a way to add a "patrol function"? i tried everything but it eighter ignores it or the code breaks

Ответить
@armandopaez8882
@armandopaez8882 - 05.05.2023 13:06

Definitely worth the length of the video. Your way of explaining is simply wonderful. It's almost like going to school. Thanks, master!

Ответить
@reinhpash
@reinhpash - 03.05.2023 01:06

dunno why but my transitions not work

Ответить
@travisgarrisonihdlive
@travisgarrisonihdlive - 02.05.2023 14:26

Great tutorial but one thing I did find an issue with after adding more then one ai you have to do a check if the cover is taken or not or the ai will trip out trying to get in the same position as another. After adding a check for this it worked perfectly.

Ответить
@6Abdellah9
@6Abdellah9 - 14.04.2023 02:28

thx so much, ur a life saver im using this for a school project, however I came across a little bug start reload gets called but it never reloads any idea why and do u have the scripts anywhere so I can better see the difference

Ответить
@gun8737
@gun8737 - 03.04.2023 21:05

you are not a live saver, you are the embodiment of divine intervention. i was looking to pick up unity to develop a payday 2 type game, where the ai bassicaly just throws itself at the player. you cant even imagine how many tutorials ive watched to try and find what i need. thanks so much man

Ответить
@afrodidcraft
@afrodidcraft - 27.03.2023 18:24

merci frerooo <3

Ответить
@kalpolproductions8558
@kalpolproductions8558 - 19.03.2023 10:08

Fuck you for being late to post this on the internet 😂.
No cap this is THE thing i was looking for 1.5+ years, this tutorial is a hidden gem ❤. you earned a subscriber

Ответить
@mook_10
@mook_10 - 15.03.2023 06:36

this is exactly what i was looking for. please please please make more. SO many tutorials on here covering the "stupid" AIs but really nothing covering enemies who even pretend to have a sense of strategy

Ответить
@venkatswaraj3054
@venkatswaraj3054 - 11.03.2023 10:22

Thank you. This is what I am looking for.

Ответить
@am-apps-games
@am-apps-games - 06.03.2023 23:24

Very well done! Thank you

Ответить
@this-is-gamedev
@this-is-gamedev - 06.03.2023 21:10

The video became a bit long. I usually aim for 10 minutes. Anyway, I hope you enjoy and let me know what you like and what you hate. I have many more tutorials in the pipeline :D

Ответить