My Final Year Project #17
- 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.


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.

Comments