How do you write an FSM system?
Honestly, I’ve run into difficulties trying to create a fairly simple NPC using FSM. Even though I understand the concept of how it’s supposed to work, I can’t quite imagine how to implement it. And when I do try, I’m just not confident in the efficiency of my approach.
So, to rephrase my first question: how do you write an FSM for an NPC? Or maybe how to use an FSM to control an NPC… I’m already confused after so many days.