Can anybody help with an ai path finding code that will follow the player by the shortest path possible without just running into the wall
That’s a complex topic, especially the “without just running into the wall”. There isn’t some code that can be easily shared.
Try searching the forums for advice on how to approach this subject. Here is topic I came up with that includes code: