đEnemy Follower
Last updated
Last updated
Paste âModel FBXâ to hierarchy
2. Rename this model to âEnemyâ and add tag to âItemâ
3.Setting this model layer to âItemâ
4. Add script to this model > D3 ENEMY CONTROLLER:
This Contain:
Rigidbody, Capsule Collider and Animator
let it be as follows:
The enemy will get closer to the player as he collides with the obstacles, here you can modify the distance that the enemy will get when the player collides, the first collision of the player the enemy gets a little closer, the third collision (Random) the enemy approaches completely and takes life away from the player.
Capsule Collider
This allows enemy movement and collision
-Change the size of the collider to fit your character
This is the recommendation:
6. Animation Manager
In the folder "Animation"
Find "PlayerEnemy"
Just Duplicate it and assign it to your enemy.
Optional: replace the default animations (for more information here)