Guard Patrol and Chase Mechanics
Author: Trayvion Coats
Blog Entry Part 1: The Problem
This week, I faced significant challenges in developing the guard patrol and chase mechanics for our game. The guards are designed to patrol specific areas and chase the player upon detection, but ensuring smooth and realistic behavior proved to be difficult. The primary issues were that guards sometimes failed to patrol their designated areas correctly, and their behavior became erratic when chasing the player, especially when the player moved out of the patrol area.
Blog Entry Part 2: Problem Solution
To address these challenges, I conducted thorough research and discovered a more effective approach for implementing guard patrol and chase behaviors.
First, I improved the patrol system by implementing a waypoint-based patrol path, ensuring that guards move smoothly between designated points within their patrol area. Each guard now follows a predefined path, making their patrol behavior more predictable and realistic.
Second, I enhanced the player detection and chase logic. When a guard detects the player, they enter a chase mode. If the player loses the guard, the guard will abandon the chase and return to their patrol path
With these changes, the guard patrol and chase mechanics are now functioning much more effectively..
In Plain Sight
Status | In development |
Authors | 6SidedStudio, TrayCoats, Jonathan Kohl, wunt, Kyu, Glitch, DeltaCompany |
Genre | Puzzle |
Tags | Fantasy, First-Person, Horror, Stealth |
More posts
- Death And RebirthJun 01, 2024
- Missing Projectiles - Jonathan KohlMay 31, 2024
- Town AlarmMay 31, 2024
- Opening back up the Opening.May 31, 2024
- Try, Try, AgainMay 30, 2024
- When the hint shop scammed the playerMay 26, 2024
- Town Alarm Collision DetectionMay 25, 2024
- Grappling hook and Shifting prioritiesMay 25, 2024
- Making Cutscene is Time ConsumingMay 24, 2024
- Trouble Returning Ritual Items – Jonathan KohlMay 24, 2024
Leave a comment
Log in with itch.io to leave a comment.