So I have a 2D array of bytes ranging from 0 to 4 which are all jumbled up. What I want to do is specify a byte value, for example, 3. Then I want to get the offset (x and y location) of every 3 in the array and put them in a list (or another array) so I can iterate through all the 3s.
I'm pretty sure this is possible, I just don't know how to do it. I'm aware that there is no prebuilt method for iterating through multidimensional arrays so I'll have to write a method to do that.
To summarise: Filter all bytes of a certain type from a 2D array and put their coordinates (offsets) in a list or another array.