Тёмный

How to have an Enemy follow the Player in Unity Tutorial 

Game Dev By Kaupenjoe
Подписаться 2 тыс.
Просмотров 1,1 тыс.
50% 1

In this Unity Tutorial we implement an Enemy following the Player. Or in more general terms, a GameObject following any other GameObject.
== LINKS ==
▶️ GitHub: github.com/Tut...
▶️ Unity Package: url.kaupenjoe....
▶️ Assets Zipped: url.kaupenjoe....
▶️ Basic Input Gist: url.kaupenjoe....
== CREDITS ==
Character by: merchant-shade... by Merchant Shade under CC0
Tiles by: anokolisa.itch... by Anokolisa under CC0
Crab by camacebra.itch... by Camacebra under CC0
== HASHTAGS ==
#kaupenjoe #unitytutorial #unity

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

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@ahu3fi1
@ahu3fi1 Месяц назад
i love this channel ❤❤❤
@MG-ic6zk
@MG-ic6zk Год назад
i'm actually surprised i was able to follow almost everything you said lmao (i've started actually learning unity 2 weeks ago) so good work keep it up 👌
@GameDevByKaupenjoe
@GameDevByKaupenjoe Год назад
That's awesome to hear! Thank you so much and will do 😎😎💙
@ArchAngelAzrael
@ArchAngelAzrael Год назад
What if I want to use some type of Line of Sight ? Basically, if I go behind of tree or rock, the enemies will not track me anymore. I still learning the very basics, but I think some implementation using Raycast will work.
@ShellSharpInc.
@ShellSharpInc. Год назад
You would probably need to make the raycast direction rotate somehow so the player cant just walk past the enemies, or maybe make the enemy able to hear the player somehow. Then another thing you will want to do is make the enemy and player move using physics rather than transform.position, because transform.position moves them every frame, while RigidBody.AddForce() uses physics simulation.
@GameDevByKaupenjoe
@GameDevByKaupenjoe Год назад
Oh that's a really good question! I'll see if I can make an additional video showing that! 😁 There might be a couple of cool topics to be covered for that 🤔 In general, just off the top of my head, I would say raycast is probably the most sensible. Basically have a constant raycast send from enemy to player and if it is intercepted by something, stop moving. That's of course a very basic version of line of sight, but that could work 😁
Далее
How to make Line of Sight in Unity 2D with Raycast
7:04
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
11:28
I Made the Same Game in 8 Engines
12:34
Просмотров 4 млн
2D PATHFINDING - Enemy AI in Unity
23:13
Просмотров 813 тыс.
A new way to generate worlds (stitched WFC)
10:51
Просмотров 528 тыс.
Using URP in Unity to make Emissive Texture and Bloom
9:51
Using URP in Unity to make our Unity 2d Scenes Vibrant
10:20
I Paid Fiverr Game Developers to Make the Same Game
10:25
Unity simple 2D Enemy AI Follow Tutorial
7:57
Просмотров 90 тыс.
If You Can't Make Games After This Video, Give Up
4:37