In this video I show you how to create enemy AI that follows your player around the screen.
SUBSCRIBE: https://bit.ly/2Js78lE
============
SUPPORT: / pressstartclub
In this video, we cover:
0:12 - Downloading and importing assets from the asset store
0:30 - Animating and creating our characters
1:10 - Creating a C# script for our Follow Enemy AI script
1:40 - Calculating the direction our player is in real time
2:20 - Adding a RigidBody2D to rotate our enemy to face our player
3:20 - Calculating the rotation in degrees to rotate our enemy
4:20 - Moving our enemy to chase the player object
6:00 - Final Product
6:15 - Tutorial Challenge
Armored Soldiers Asset Pack:
https://assetstore.unity.com/packages...
COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2019...
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
Auf dieser Seite können Sie das Online-Video Unity - Enemy Follows Player [Beginner Tutorial] mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Press Start 15 Juli 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 188,887 Mal angesehen und es wurde von 3.9 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!