Construction paths on the map.
Faced a problem. How to build a move along the way in such terms.
The search for the path should be carried out only on certain textures (map) that I load as a sprite.
I attached a picture. In the upper image, the dark road indicates where the object should move and look for a path.
Just below, I inverted the image to make the buildings solid, and the fact that white is a road, but this did not help either.
That is, I load the map, but I can not do so that the path would work only along the lines of the road.