FNAF Fan game Jumpscare problem (REPOSTED WITH BETTER INFO & MFA)
Note: This is reposted post of a problem I had and asked the forum about it and barely anybody didn't know what to do and since I wrote the original at 2 AM I rushed to describe what the problem was and didn't include an MFA. My fault on that one. The reason why I didn't edit the original post was because let's be honest no one would have saw it. Anyways, let's just get on with the problem.
While playtesting my game and testing out the enemy AI there was this bug I couldn't fix and spent I think 3/4 Days trying to fix it, yet nothing work and at times made it worse. Before we discuss what the problem was let me explain how I implemented it. If the Enemy is in a specific hallway there was a timer and when that timer ended The enemy would jumpscare the player then Gameover. Simple right? And this is where the problem is. (This is based out of my personal theory) The more you prevent the enemy as the night progresses the timer seems to go faster. During my playthroughs this would occur on 2 am - Sometimes on 3 am. I haven't gotten past 3 am. I've gone as far as to making count down counters but the counter would be stuck at 0 or stay at 1. I have included an MFA to see if anyone could figure out this problem.
(Note: I can't delete the original post to where originally I discussed my problem)