Тёмный

Enemy Zombie AI In Unity - FPS Game With Unity & Blender 

Single Sapling Games
Подписаться 19 тыс.
Просмотров 25 тыс.
50% 1

ENEMY ZOMBIE AI IN UNITY
Today I start making the AI system for the zombies.
Feel free to donate if you are rich :D
streamlabs.com/singlesaplingg...
Thanks to: Robin Brown, Vangsguard and Pavel for their support on Patreon.
Discord Server - / discord
Patreon - / singlesapling
Twitter - / singlesaplingg
Reddit - / singlesaplinggames
Instagram - singlesapli...
DeviantArt - singlesaplinggames.deviantart...
Facebook - / single-sapling-games-2...
Itch.IO - single-sapling-games.itch.io+
Tumblr - / singlesapling
RU-vid - / @singlesapling
--Programs--
Engine: Unity - unity3d.com/
Modeling: Blender - www.blender.org/
2D Editing: Krita - krita.org/en/
Programing: Visual Studio - visualstudio.microsoft.com/
Organization: Trello - trello.com/
--Outro Music--
Song: Horizon (feat. Tylah Rose) - Loreno Mayer & Haesën
Music provided by Ninety9Lives
Video: • Loreno Mayer & Haesën ...
Download: 99l.tv/88HorizonYU
--TAGS--
script make game for free 2020 development dev unity blender program tutorial guide new hd twitter youtube developer indie design art cool easy quick fast fps first person shooter game gaming how to intro introduction learn teach learning teaching livestream live stream indiegamedev indiegame indie unity2020 blender3d unity3d devlog

Игры

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

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@Vangsguard
@Vangsguard 2 года назад
Wtf these uploadings keep coming. Awesome! Keep up the great work
@SingleSapling
@SingleSapling 2 года назад
Thank man, I will keep them coming
@Ardamen
@Ardamen 2 года назад
Good job dude
@NoorFatima-sq2go
@NoorFatima-sq2go 2 года назад
best oneeeee plus the easiest one you explained very well good job man
@joyanguine7550
@joyanguine7550 2 года назад
I lost my other youtube account. But It's a good thing I saw you in one of my recommendation.
@SingleSapling
@SingleSapling 2 года назад
Ahhh nice
@ivashka37
@ivashka37 Год назад
when a zombie approaches the player, it starts spinning along the X axis and looking somewhere into the sky. How to turn it off help please
@fatfingersman
@fatfingersman 2 года назад
cool
@TeeccH
@TeeccH Год назад
when i dragging the player object in the enemymovement script , it showing scene mismatch(cross scene).
@samuelmesa5781
@samuelmesa5781 11 месяцев назад
My enemy doesnt seem to be affected by changing the Stopping Distance, he will keep moving towards the player although I followed the next tutorial and his animation does change when the distance between enemy and playes drops under Stopping Distance.
@HeplMeh
@HeplMeh 4 месяца назад
Why go through all the animation settings and not use them?
@trappeddarkhd1707
@trappeddarkhd1707 2 года назад
When you tried to explain how to make the enemy face you, there's some sort of cut at 7:56.
@chouaibkaddouri1830
@chouaibkaddouri1830 Год назад
[SerializeField] private float stoppingDistance = 3 add this on top
@hhhhhhhhhhhhhhhhh159
@hhhhhhhhhhhhhhhhh159 2 года назад
1:15 so relatable that i had a good laugh on that one xD
@harrydennehy3779
@harrydennehy3779 2 года назад
same here man, same here🥲
@DerAua
@DerAua 2 года назад
Wow. You know what? I'll just copy this for my own model enemy (Capsule with a boltgun). Just in time :-)))
@SingleSapling
@SingleSapling 2 года назад
;)
@HeisenTheory
@HeisenTheory 2 года назад
At 7:56 you didn't say how to make the stoppingDistance, but I'm pretty sure you make a float and set it equal to agent.stoppingDistance in the GetReferences?
@chouaibkaddouri1830
@chouaibkaddouri1830 Год назад
[SerializeField] private float stoppingDistance = 3 this will work
@arielthemermaid3576
@arielthemermaid3576 Год назад
How do you prevent the enemy from rotating on the X & Z axes? Right now it looks like it’s laying down when the player gets too close
@arielthemermaid3576
@arielthemermaid3576 Год назад
For anyone else having this issue: I changed the RotateToTarget function to this: { Vector3 targetPosition = new Vector3(target.transform.position.x, transform.position.y, target.transform.position.z); transform.LookAt(targetPosition); } I left everything else the same and now it works. The enemy rotates towards the player but only on the y axis, so it doesn’t tilt or lie down
@zachhoffman5142
@zachhoffman5142 Год назад
@@arielthemermaid3576 thank you, this works perfectly.
@DinaElsaey
@DinaElsaey 5 месяцев назад
you are a life saver😭😭
@CuteBlade_
@CuteBlade_ Год назад
If the player is behind a wall, the zombie continues to look through the wall when moving (
@irfankia8444
@irfankia8444 Год назад
is till not moving
@warnivea2222
@warnivea2222 2 года назад
Hi, thank you for the videos, it is possible to create a way that the zombie just runs towards the player if you are close enough ?
@N1kGG
@N1kGG 2 года назад
Just add trigger to zombie, and make him follow player when the player entered the trigger.
@N1kGG
@N1kGG 2 года назад
Sorry for my english (Im from Russia)
@warnivea2222
@warnivea2222 2 года назад
@@N1kGG ok thank you so mutch i will try :D
@SingleSapling
@SingleSapling 2 года назад
You can also use vector3.distance to see how far away the player is and thenw trigger the code
@VladmirPutin926
@VladmirPutin926 2 года назад
@@SingleSapling what code to put?
@t-uknowwn5442
@t-uknowwn5442 Год назад
I can't seem to find Zombie Attack FBX
@subby_subway7286
@subby_subway7286 Год назад
Make sure you imported it into your unity project
@Valhalla-Gaming
@Valhalla-Gaming 2 года назад
I followed your instructions, but the enemy character still goes under the player. They laying down and go under player character :)
@SingleSapling
@SingleSapling 2 года назад
And you did the whole script?
@Valhalla-Gaming
@Valhalla-Gaming 2 года назад
@@SingleSapling Hi. Yes i did. I removed the rotateToTarget function and it looks better now. Dont need it i think :)
@konnor2253
@konnor2253 2 года назад
This seems nice but the enemy is just passing through walls. How to fix this?
@SingleSapling
@SingleSapling 2 года назад
I will be fixing it in the one of the next videos
@konnor2253
@konnor2253 2 года назад
@@SingleSapling nevemind, I fixed it by myself, but thank you anyway
@SplitGraphics
@SplitGraphics Год назад
@@konnor2253 how?
@landoncarey8084
@landoncarey8084 2 года назад
My enemy is in ground
@kidnimbus3562
@kidnimbus3562 2 года назад
Try playing with the "base offset" in the Nav Mesh Agent component
@Chasling_
@Chasling_ 2 года назад
7:56 you just suddenly have a bunch of code??
@SingleSapling
@SingleSapling 2 года назад
From the previous episodes
@noagero7351
@noagero7351 Год назад
@@SingleSapling from which episode?
@chouaibkaddouri1830
@chouaibkaddouri1830 Год назад
[SerializeField] private float stoppingDistance = 3 add this on top
@indianuzumaki280
@indianuzumaki280 3 месяца назад
github?
@eraycem6234
@eraycem6234 2 месяца назад
can you find his github account?
@indianuzumaki280
@indianuzumaki280 2 месяца назад
@@eraycem6234 nope...
@Charduza
@Charduza Год назад
NAV MESH AGENT DOESNT EXIST
@gamingstrikebyrafay9026
@gamingstrikebyrafay9026 9 часов назад
ruuuuuuuuuuuudeeeeeeeee!!!!!!!! not suggested for underadult age thingie devs!!!!!!!!!!!!!!
@user-oq9fg7ut2i
@user-oq9fg7ut2i Год назад
Help me: i have a error: UnassignedReferenceException: The variable target of ZombieAI has not been assigned. You probably need to assign the target variable of the ZombieAI script in the inspector. UnityEngine.Transform.get_position () (at :0) Zombiaki.ZombieAI.MoveToTarget () (at Assets/Skrypty/ZombieAI.cs:23) Zombiaki.ZombieAI.Update () (at Assets/Skrypty/ZombieAI.cs:18)
Далее
Zombie Attack - FPS Game With Unity & Blender
12:31
Просмотров 7 тыс.
3D ENEMY AI in UNITY - (E01): STATE MACHINE BEHAVIORS
17:24
Creating An Inventory System in Unity
11:03
Просмотров 177 тыс.
Enemy Zombie Stats - FPS Game With Unity & Blender
5:33
This Is How I REMADE Call Of Duty ZOMBIES!
9:02
Просмотров 23 тыс.
I Turned Fake Mobile Game Ad into a Real Game
10:26
Просмотров 3,5 млн
How to code SMARTER A.I. enemies | Unity Tutorial
32:49
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 775 тыс.
МИНИ ИГРЫ В STANDOFF 2 #shorts
8:38:34
Просмотров 361 тыс.
NOT STOPPING TIL NEW WORLD RECORD
8:22:15
Просмотров 1,1 млн