💀Enemy Follower

Setting Enemy Editor

  1. 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.

  1. 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)

Last updated