I would recommend to start reading about A* algorithm. It's one of the most commonly used pathfinding algorithms. For example, Wikipedia has a pretty good article on the topic, with an animated gif demonstrating the process.
manabreak
- 1.1k
- 1
- 8
- 24