top of page

SIMPLE ENEMY BEHAVIOR TREE

Behavior Tree for a Kamikaze Enemy that blows himself up to damage the Player.

The behavior follows the following logic:

  • Enemy is in Idle / Wander moving randomly within an area.

  • When in Idle / Wander, If the Enemy sees the Player, it´s Alert meter will begin filling up.

  • When the Alert meter is full, the Enemy Detects the Player and plays an Alert animation.

  • Then, the Enemy will move towards the Player and, when in range,  throw himself at the Player and blow himself up.

  • The Enemy will stop any action when the Player starts an Execute.

  • If the Player leaves the Combat Area, the Enemy will go back to Idle / Wander and it´s Alert meter is emptied.

KamikazeTree.png

COMPLEX ENEMY BEHAVIOR TREE

Behavior Tree for a evasive Enemy that flees from the Player to shoot projectiles from a distance.

The behavior follows the following logic:

  • Enemy is in Idle / Wander moving randomly within an area.

  • When in Idle / Wander, If the Enemy sees the Player, it´s Alert meter will begin filling up.

  • When the Alert meter is full, the Enemy Detects the Player and plays an Alert animation.

  • Then, the Enemy checks the distance from the Player

    • If the distance is less than 5 meters but greater than 3 meters, the Enemy will Flee in the opposite direction of the Player while avoiding obsticles.​

    • If the distance is less than 3 meters, the Enemy will perform a Tail Sweep attack to get the Player away from him. Then, it will begin Fleeing. 

    • If the distance is greater than 5 meters but less than 8 meters, the Enemy will stop moving and spit three Projectiles that fall from the sky.​

    • If the distance is greater than 8 meters, the Enemy will go back to Idle / Wander, but the Alert meter will not be empied (It will still attack when the Player gets close).

  • The Enemy will stop any action when the Player starts an Execute.

  • If the Player leaves the Combat Area, the Enemy will go back to Idle / Wander and it´s Alert meter is emptied.

I worked on a total of 11 unique Enemy Behavior Trees on GHUNTER
and will be slowly uploading them here

bottom of page