Communication (attention zones)

Continuing with the same example, where we have a few skeletons on the map that will start attacking the player if the player gets near them, we can add one more feature that will make them interact even more one with another. Another thing that will make the characters behave like a group instead of single characters placed on the game is the communication. For example, here we have the skeletons that will only attack if the player is near, but what happens if one of the skeletons that is near the player yells that he saw the player character? We can assume that all the AI characters around that area will hear the yell and will start running in that direction in order to help their friend.

Once again, we can ...

Get Practical Game AI Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.