Town Alarm


Author: Trayvion Coats

Date: 5-312024

Blog Entry Part 1: The Problem

This week, our development team encountered a significant challenge with the "base alarm" system, also referred to as the "tower alarm" in our game "Pain Sight." The primary issue was that the AI guards were not responding appropriately to the alarm, which is crucial for gameplay dynamics where the alarm serves as a trigger for guards to actively pursue and attack the player. The lack of response from the guards not only diminished the realism and intensity of the game but also made it easier for players to exploit certain areas without facing expected consequences. 

Blog Entry Part 2: Problem Solution

The root of the issue stemmed from the AI guards not being correctly notified of the alarm state change, which prevented them from switching to an attack mode. After a thorough investigation, We discovered that the communication between the alarm system and the individual AI guards was not being effectively executed. The solution involved two main adjustments: the use of an array to manage all AI guards that need to be alerted and the implementation of a delegate system paired with a Blackboard key.\

Leave a comment

Log in with itch.io to leave a comment.