Originally Posted by
rogster001
ok so for example, this is how its supposed to look if i printed out output of array contents,
i have just compiled this in work but the setup is not same as at home and am wasting time messing about getting display right, so am just going to type example for array 5 x 5 grid
40 30 20 30 40
30 20 10 20 30
20 10 0 10 20
30 20 10 20 30
40 30 20 30 40
as you can see the target square in red has a value of 0, and all the other surrounding squares increase the movement cost outwards in all directions as the distance increases, (bearing in mind the target square could be placed anywhere)