Tuesday, 21 February 2017

They Live! The enemy

Another Update!

So I've been adding enemies to the game, simple hover drones shooting rockets.
It was a little tricky to do the targeting right and still needs some tweaking in the movement however for game play purposes this feels rather good.

At the moment it uses a simple path finding to move directly towards the player, this will change as more of the game will be developed.


Hover Drone :

- C# Script that sees the player within a collider that checks if the player is  range.

- Uses a raycast to determine if the player is in the line of sight. (no objects obscuring the view)
This prevents friendly fire from happening and won't suprice the player that his enemy will spot him from around corner.

- Lookat used to target the player once in range and in sight.

- Shoots a rocket that explodes on impact with any other object.

- Enemies have 100 Hitpoints that can be depleted by the player shooting the enemy, once HP drops below 1 (0 or less) destroys the enemy.

Video of this in progress:



No comments:

Post a Comment