@ Andy, in a situation when all you want to do is hold TRUE or False, An image map is NOT actually easyer than an array.
I am not saying you are wrong, (cos you are not), I often use Image maps for, (at the least), saving the "array" to disk. (after all a height map is just an array). But Minds question started with "I have a two dimensional array", so turning round and saying you can use an image map, (when he cannot use an array properly) was not actually helpful. ;)
@ Mindstorm. An Image is made up of losts of values stored next to each other, pixel (0,0) pixel (0,1) etc This as you can see if the same as an array Pix(0,0), pix (0,0). When You want a two dimentional array (or sometimes 3), you can see that a imagemap is the same thing. Often if you want 3 Two dimentional arrays, and you know that the max value in each cell will be less than 255, you can still use 1 image (x,y,red) (x,y,Green) (X,y,Blue).
In the situation you described your problem seems to be that you are miscalculating which cell to look at, and that the problem is not that you are not using an image.
I am not saying you are wrong, (cos you are not), I often use Image maps for, (at the least), saving the "array" to disk. (after all a height map is just an array). But Minds question started with "I have a two dimensional array", so turning round and saying you can use an image map, (when he cannot use an array properly) was not actually helpful. ;)
@ Mindstorm. An Image is made up of losts of values stored next to each other, pixel (0,0) pixel (0,1) etc This as you can see if the same as an array Pix(0,0), pix (0,0). When You want a two dimentional array (or sometimes 3), you can see that a imagemap is the same thing. Often if you want 3 Two dimentional arrays, and you know that the max value in each cell will be less than 255, you can still use 1 image (x,y,red) (x,y,Green) (X,y,Blue).
In the situation you described your problem seems to be that you are miscalculating which cell to look at, and that the problem is not that you are not using an image.