Looking at the wiki this line confuses me a little bit.
I can get the pathfinder to find a path fine when I only have 1 set of start and end tiles, but if I have more than one it simply uses the first set of start tiles and the last set of end tiles. Can somebody tell what the point of adding in more start and end tiles is? The way I read it is that it will find a path for each set of start-end tiles, but this is not correct?The pathfinder expects an array of [start_tile, tile_before_start]-arrays and an array of [last_tile, tile_after_end]-arrays. since we only have one source and one goal tile, we'll just create two arrays with one element each. Now the pathfinder is ready to find a path.
Cheers all!