How do I make AI find a path like on the image? I looked for solution for it in search but it doesn't seam like a very popular thing. Maybe something like IF PLAYER Y < ENEMY.Y PICK NEAREST PLATFORM WITH SMALLER Y THAN CURRENT ENEMY.Y ( so it wouldn't pick up the platforms below him ) which would repeat until the enemy would reach the platform with player followed with appropriate movement actions, but I have no idea how to pick nearest platform instance with higher or lower value relative to the enemy instance. Would anyone have any solutions?
<img src="http://img854.imageshack.us/img854/859/z6bp.jpg" border="0" />