Bryan and I have been working on adding a stealth system to our game. We accomplished this by giving enemy NPCs four game objects that are children of the NPC. If the NPC is facing the direction of the object, it will be made active, and the other three inactive. If the player collides with one of these active objects, they will be caught and sent to another scene.
Bryan modified the NPCbehavior script by adding four variables that are the directions the NPC can face.
We encountered a glitch where sometimes the player freezes after being caught and can no longer move. We plan to fix that this week.




No comments:
Post a Comment