Game Maker update: Finally managed to add fresh stuff to the vaguely titled ‘Shooter Thing’ after a bug that took ages to fix. Once that was sorted I was able to add loads of new mechanics. Not far off getting to a point where the gameplay is starting to come together.
Game Maker thing now has guards moving around and reacting. Things to look out for:
1. The guard patrols but pauses at each end of the route (this wait can be moved to a specific thing he’s actually guarding later).
2. Stops to watch player doing something bad (holding a gun is the only option at this point).
3. Goes into alert if he discovers something bad like a body, but won’t attack the player if he hasn’t seen him do anything.
4. Attacks the player (badly) the instant he’s seen doing something bad.
The thing I’m most pleased with is the guard’s code is less than that of the NPC, despite being slightly more complex behavior. I also changed the debug collision box you can see on the NPC to a line on the guard. Seeing as it’s only 2D ‘in front / not in front’ is the only thing to check so there’s no point in checking all that space.