Here’s a way of using pathfinding on a platform game.
The explanation is further down the thread, in this post.