I am currently working on a 2D platformer game and i was hoping to have AI that could follow the player instead of mindlessly moving side to side in the map. I looked into astar pathfinding and i managed to make a simple pathfinding system for an overhead game. The thing i am having trouble with is getting the AI to follow the path in a 2D platformer. I can make simple AI follow paths on overhead games, but i have no idea how to do this in 2D. how do i make the pathfinding itself calculate gravity, jumpheight, pitfalls and all of the other 2D obstacles? also how would i make the AI even follow a path like this? i would like to make an AI like the one in this video . if it makes a difference i use c++.