U
Ulrich6
Guest
Hello all.
I want to build a hexagon grid system that appears in perspective, like this:
Every hexagon can be clicked and mouse-hovered (with highlight) and all those regular actions.
I don't want to use real 3D perspective functions, because all the game will be in 2D. 2D-3D (and vice-versa) coordinates conversion would be unnecessarily hard for my goal.
The problem is I'm not sure how would someone approach this.
Do I have to create an object for every hexagon holding its coordinates and a unique sprite representing the clickable area?
Can I do it in a more efficient way?
Also, it may be worth noticing that the distance between two consecutive hexagons in a line is always the same. Other than that, I couldn't think of anything else.
I'd be gleeful if someone could help me.
Thanks in advance.
I want to build a hexagon grid system that appears in perspective, like this:
Every hexagon can be clicked and mouse-hovered (with highlight) and all those regular actions.
I don't want to use real 3D perspective functions, because all the game will be in 2D. 2D-3D (and vice-versa) coordinates conversion would be unnecessarily hard for my goal.
The problem is I'm not sure how would someone approach this.
Do I have to create an object for every hexagon holding its coordinates and a unique sprite representing the clickable area?
Can I do it in a more efficient way?
Also, it may be worth noticing that the distance between two consecutive hexagons in a line is always the same. Other than that, I couldn't think of anything else.
I'd be gleeful if someone could help me.
Thanks in advance.
Last edited by a moderator: