GameMaker hexagonal grids

M

mounirtohami

Guest
with point hexagonal grid
i want to know how to specify even row when code
i have tried if ((xx mod 2) == 1) { mx = 32 } else { mx = 0 }
 

VacantShade

Member
I'm really not sure what you're trying to accomplish...

If you could explain your objective a little more clearly I'm sure there are some good ideas that could be shared to help you.

At any rate, I really benefited from Red Blob Games' blog on hexagonal grids. It's extremely thorough and has interactive examples built into the page.
https://www.redblobgames.com/grids/hexagons/

Scroll down a little more than half way and you'll reach the part "Pixel to Hex".

Hope that helps!
 
M

mounirtohami

Guest
can any one translate this page to GML ? to type how to make that in gms2 ?
 
Top