While I’ve procrastinated on this for some time, I finally got around to implementing a game feature this month. A big part of my game “True King” will be a turn-based strategy mode, held on a map grid between two armies, like “Fire Emblem” or “Final Fantasy – Tactics.” Or, more generally, like Chess or Checkers. I had already made a prototype where the enemy character AI moved randomly (see that article here from… 18 months ago?!?). Now, the enemy AI knows where your players are, and knows to move towards you, to create the illusion of a somewhat tactical army.
How does one create artificial intelligence for this type of thing? It’s a basic concept, and I’ll talk about how I did it.