How to make the enemy face & follow the player in Unity

Gamedev With Mark
Gamedev With Mark
39.9 هزار بار بازدید - 2 سال پیش - In this video, I will
In this video, I will show you how you can create an enemy in Unity that always faces in the direction the player is and follow the player.

We will write a simple script that is responsible for this facing and following behaviour. We will also see what you can do if you have multiple (different) enemy sprites. The facing can be tricky in that case.

Assets used:
Bandits - Pixel Art - https://assetstore.unity.com/packages...
2D Jungle Side-Scrolling Platformer Pack - https://assetstore.unity.com/packages...

#unitytutorial #gamedevwithmark #shorts
2 سال پیش در تاریخ 1400/12/13 منتشر شده است.
39,978 بـار بازدید شده
... بیشتر