Turrets

A turret is an enemy that cannot move and can launch a projectile to the player.

A turret appears if a player arrives in the detection area of a turret.

When a turret appears, it starts to aim (and rotate) to the player, every 5 seconds the turret shoots the player.

A turret has a weak point, if the player touches the weak point with its projectile, the turret is stunned during 5 seconds but can't be killed by the player.

The turret stops its attack phase when the player leaves the detection area.