Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
I can't figure out how to setup a Hex Grid.
I have a tiled background with a hex grid and I want a sprite (the mouse cursor) to snap to the grid. If it's a simple square grid it'd be easy.
But my mind is failing me for a hex grid.
A hexgrid is basically a square grid with odd rows offset by half cell width. You can do that by using modulus, so you just add 'half width' multiplied by the 'row index' mod '2', to the X coordinates.
here's a cap:
*Edit: if you want a more precise solution I found some links for reference:
Thanks, I had made a hex board plugin(C2) from your cap file.
I had released hex grid plugin on this post.
Develop games in your browser. Powerful, performant & highly capable.
Nice rexrainbow! Thanks for letting me know.