Drones, Creatures, Shooting...
- Gabi Zorek
- Jan 24, 2021
- 1 min read
For the past few weeks I have been busy implementing another enemy. This one is a drone which activates when the player is close by turning on and hovering mid-air. I think this is my favourite enemy, it kind of reminds me of the drones in the film ‘oblivion’ with tom cruise, they inspired me to make the enemies gang up on either side of the player (will implement soon) .
So far in the game, we have 2 enemies, the human look alike creature and the drone, the creature’s AI works by the player being a certain distance away and ‘sensing’ them, if the player is too close, the creature will attack.
The drone enemy has a field of view which is an angle in front of them which they can ‘see’ and a range so basically how far they can see. If the player is within those to values, then the drone will chase the player, keep its distance and shoot at the player, right now it is just a ray cast hit which is sort of annoying because the player is constantly being hit, so I am going to change this, so the shooting is sort of in the players direction, slightly randomised.
These still need to be polished which will be done in the following week.

Comments