Making an entity follow pathfinding path array

Hey folks!

So I have an entity at 10, 5 (middle of the map) and want him to follow my already generated path of values ([10, 4], …, [10, 0], [9, 0], …, [0, 0]) but seem to be getting stuck with axis-fighting.

The entity will go to one side and then ping-pong between points and so on. I can get the entity to go to say 0,0 as an end point, but putting it at 20, 0 will make it still go to the left side as if the point was 0, 0.

Any help on making an entity follow a 2D pre-generated path would be appreciated.