Hi there. I have a question. Pretty big one tbh. I was making my game, Its a 2 player horror game, And I needed to make an AI for it. The issue is that Its a ghost, and I don’t know how to make it that advanced. A few of the requirements should be that:
1 - The player must not be in the same position (an area or radius around them, I prefer radius but then I dont know how to stop make it moving with the character) for more than 30 seconds, I don’t think this is the hard bit though.
2 - The ghost will roam areas, but it want it to be jumpscare style, not like granny or anything, something more horror, Like maybe phasmaphobia, You see the ghost run past you, then you see it in the mirror, and it suddenly disappears, After a while it follows you like normal. I have no Idea how to do this, so anything would help, Preferably someone teaching it, or even suggestions or if anyone does make the AI.
3 - The AI can be damaged a bit with a single-use weapon and faints temporarily, but then wakes up a few minutes later.
4 - The AI should be able to detect a light source from the player from a slightly further distance, which I can do, just a bit difficult.
5 - There will be a minimap, and there should be a “buzzing” or static effect in a small radius around the ghost, on the map specifically, As it would help the players to find the ghost’s approximate location.
6 - After around half the game is done, then I would like to add venom/slimey eyes in the walls, looking at the player. This should tell the AI the location of the player, essentially acting as “cctv”. Its to make the game more difficult.
Thanks, Looking forward to everyone’s help.
P.S. I have no clue about optimising a game for both pc and mobile, so When the time comes I’ll probably ask again. Thanks again. I have done the Day-Night cycle, weather system, and the clock to tell the time, the goal is to survive the whole night basically. From 6 PM to 6 AM.