top of page

My Final Year Project #17

  • Writer: rajdev bhachu
    rajdev bhachu
  • Feb 21, 2022
  • 1 min read

Ready! Aim! Fire!


This week I made the archer AI and I also did some optimisation with C++.


Below is a video of the archer AI. They behave similar to the sword AI in the way in which they patrol a certain area with individual patrol points as well as having sight and hearing. Obviously, since it is an archer, the attack will be ranged so, I changed the radius so that instead of walking up to the character, they will run to a certain distance and then start firing arrows. Because archers are generally seen as weaker AI to kill, it only takes 2 hits in order to kill.

This is the optimisation of the hearing for the sword AI. Because the previous hearing was on an event tick, it was constantly updating every frame, which is not that good for the frame rate of my game. So, instead, I did some C++ work on visual studio, a lot of this is explained on my dissertation. The two pictures below show the code inside of visual studio as well as the nodes on Unreal Engine.

ree

ree

This week was pretty good, with the addition of the new AI, Till Kingdom Come is looking like its going to have a world bussling with enemies. The addition of hearing has also made the game lag a lot less too. Next week I plan to improve upon the HUD of the game as I start to enter the closing section of the project.

Recent Posts

See All
My Final Year Project #24

The Final! Ahh, what a bittersweet ending! I'm sad to see this project come to a close but I also am happy that I got to do this...

 
 
 
My Final Year Project #23

This week is the penultimate week, this week was all about proof reading my dissertation and doing some more quality assurance checks....

 
 
 
My Final Year Project #22

Sounds! This week was pretty tedious work, it was all about the sounds of the game. Trying to source free sounds and implementing them...

 
 
 

Comments


bottom of page