Discuss Scratch

GoodBuilder
Scratcher
49 posts

Axonometric & Hex Grid Representations

Hello!

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!

This is my signature. I have nothing to put here. Congratulations. You just wasted 3 seconds of your life by reading this.
PutneyCat
Scratcher
100+ posts

Axonometric & Hex Grid Representations

You might find this hexagonal grid engine helpful.

Powered by DjangoBB

Standard | Mobile