Dominic - V0.0.3 Devlog - Doorway System


I was tasked with handling the doorway system in our game. The problem was making a system that would add to the overall aspect of the game. At first, I made a simple system that would automatically open the doors when a player entered a sphere collider. That system did not work well with our game because the game is meant to be a stealth game so I wanted to give the player the ability to control the doors. Next, I added the interaction mechanic that would allow the player to press an interact key ('e') to open a door that they are standing next. After I got the core interact system implemented, I worked to implement a key system where the player would need to obtain a key drop in order to unlock the doors. I created a simple pickup actor that "gives" the a key to the player by setting a 'hasKey' bool to true. Once a player reaches a door, if the door is "locked" they will be able to unlock the door with the key and the key will then be "consumed" so the player must find a new one in order to unlock another locked door.
Once I had all of the systems implemented, I started to implement UI popups that would prompt the user if a door was locked, unlocked, and if a player obtained a key. Once I got the UI prompts working, I implemented a system that would allow me to set if a door required a key to open or not with a simple bool in the editor. 


Get Echo in the Shadows

Leave a comment

Log in with itch.io to leave a comment.