This was super fun!! I'm extremely curious about how the AI works, it felt really natural
Viewing post in Fartocalypse jam comments
Thank you. The AI is actually really simple:
There is a static list of manually placed spots where the NPCs should stand.
- NPC chooses one random spot and removes it from the list.
- NPC moves to spot (using Unity's NavMeshAgent)
- NPC stays at spot for random interval (5-10s)
- Repeat with one but re-add last used spot to list after getting a new one.
If at any point during this an NPC enters a fart, they pause their default behaviour until either the fart disappeared or they were able to blame the fart on someone.