I'm not sure which forum to put this it, but it seems too advanced for Help With Scripts, so I'll put it in the ATs.

How would I go about implementing a hex grid or axonometric (triangle) grid in Scratch? I understand that I could use a 1D list to represent a square grid using some ugly stuff with the modulo operator, but how would I create an adjacency detector with a list-based hex grid visually represented on the screen by clones? How could I determine the 6 adjacent hexes to any given hex? Thanks for your time!


You might find this hexagonal grid engine helpful.