Devlog 3: Nathan Thorpe
Devlog 3: Pathing and Attacking
This week was focused on finishing up 3rd playable build, with my focus being on the enemy attack and pathing. Before I started working on the pathing, the enemy would only follow their given path with no regard to the player. With that in mind, my first goal was to introduce perception from the enemy to the player. That took some time due to the new system in Unreal Engine 5, stimuli sources; which without it, the perception component would not fully work. Once perception was implemented, I then moved onto creating a new tasked dedicated to chasing the player(As seen in video).
Once the task was created and the enemy was able to chase the player within their vision, I moved onto getting the enemy to attack the player. This was done by creating another new task for the enemy, along with an Interface for the attack and a BTService. The service allowed me to create a condition where the enemy was not only able to attack when in range but also had the attack be on a delay in order to avoid the player being hit every possible frame. The last addition to the Ai's logic is the Decorator to tell if the player is seen. This allows both behavior tree paths to work regardless.
Get Guardians of the Keep
Guardians of the Keep
Status | Prototype |
Author | Lilcoin |
Genre | Action, Role Playing |
Tags | Hack and Slash, Tower Defense |
More posts
- Version 0.1.177 days ago
- Version 0.1.078 days ago
- Devlog 3: Joshua BrayAug 30, 2024
- Devlog 3: Adam MashawAug 30, 2024
- Devlog 2: Nathan ThorpeAug 24, 2024
- Devlog 2: Adam MashawAug 23, 2024
- Devlog 1: Joshua BrayAug 17, 2024
- Devlog 1: Nathan ThorpeAug 17, 2024
- Devlog 1: Adam MashawAug 17, 2024
Leave a comment
Log in with itch.io to leave a comment.