Hi all, I’m back again.
I am looking to add pathfinding for AI in the traditional roguelike I am working on, but I am not exactly sure how to, due to my level of experience. I’ve seen some forum posts on here about the issue at hand, but they unfortunately weren’t clear enough for me to follow.
Essentially: The enemy should only move one 64 x 64 cell at a time, like the player is doing. towards the player. But I do not know where to get started, or how to properly implement a grid for the enemy to follow.
Here is a screenshot of what I have so far, The variable TurnGeneration is the “turn-in-progress” mechanic. It is what holds all the info needed to complete a turn.
Here is a gif of how the player moves, so you can understand what I am talking about.
I apologize for the lack of experience. However, I do believe once I get passed this obstacle that I will be good for a while.