Hello, @The_Iron_Crafter! In this version, I have: - fixed the bug where some random NPC would show up when the game ended. - Added Stab Cooldown of 3 second after the "blackness" hides, to avoid Spamming "f" and getting an easy murderer win. - MASSIVELY compacted random movement code to compensate for eventual lag created by all the new code. - Re-centered the "Murderer/Sheriff Wins" text. - Swiched the Harry Potter skin's eyes to green, as they originally are in the book! xD - Added a larger variety of crowd screams. - Renamed all sprites for easier sensing. - Added a sprite to indicate which NPC the sheriff "AI" is targetting (more details below) - Improved the Sheriff's AI by adding a mechanic: framing. If you kill too many people with the same person next to you, the Sheriff will shoot them a dozen seconds later. If you don't frame enough people though, it will quickly move to your position and kill you. More specifically: If number of suspected NPCs = 1: Shoot (pick random NPC or Murderer) else If available shots > total of suspected NPCs: Execute (Murderer) // I made this to avoid shooting all three and wasting time. else if total suspected NPCs < 6: Execute (Random suspected NPC) This is, of course, massively oversimplified, but that's the general idea.
I give @The_Iron_Crafter full permission to use any of the code and ideas that I have implemented :D There might be some bugs that I haven't seen 0-0. Every now and very long again there would be some lag for a moment. For some reason the sound won't stop at the end Original game, idea and code by @The_Iron_Crafter All the things seen in the instructions added/edited, thought of and coded by me. Thanks for coming!