If your game is for windows you could try pathfinding object, this object has a 8-dir mode.