A deeper show into our code
We are currently using a state machine for all our inputs to make the code cleaner and not so taxing on the game as to make it drop frames. I have not worked much on state machines very much so it was difficult to make it work with the in's and out's that we wanted, but currently it is working as required. We now have a separate state for talking, the notepad and inspection. They do different things for each but we mainly use these so the movement is stop while you inspect objects so the player can not put objects through walls and movement is stopped on talking to an NPC and the mouse is revealed so you can click on the buttons.