I have a this 10 x 10 grid and I am using an array to fill the grid with two different tiles from a tilemap, tile 0 and tile 1. After fill the grid, I need to check all tiles around (up, down, left, right) the slots filled with tile number 1(green). If they are all tiles number 0(red), I need to change the tile number 1 by another one, the tile number 2 (blue).
I know i can compare the tiles at a specific position, but how to check what tiles are around them? Thanks!
c3p: https://1drv.ms/u/s!AmNDfP3N-nupprp3L4j33raqECgsuw?e=9G4ZR8