I want to make a thing where 'people' (just an example) are walking around and have the game track their movements and where they are each 'turn'. I want something similar to FNAF where if they are outside I have a few turns till they enter or something so if I turn the light on the game knows they are there and if I close the door then the game knows they can't attack and will then leave. And is there anyway I could turn this into a map or (for FNAF) a camera so if I check a room then the game can tell me if someone is there? I'm guessing (if it is possible) that it's gonna be pretty complicated lol. Thanks in advance to anyone who helps!
Comments
You have tags
Isn't that enough?
Basically you can use variables to track the things that are happening (eg light being on or off, location of monster, etc) and then use those variables to make decision in your game. You can use passage tags like 'corridor', 'outside', 'dark' to indicate the attributes of a passage representing a location.
The list of things you have asked for help on is quite long and complex, pretty much the workings of a whole game, and to give an answer that covers all of it would be equally as long and complex.
The passages you will need to read are StoryInit, "Control Room", "Move Monster", and "Corridor 1", the others are less important.
Each time you choose an option in the Control Room the monster will move one step along a path through a set of rooms (passages), when it reaches the last room it will turn around and travel back to the first room, then turn around and start again.