How to detect a clicked hexagon on a hexagon tiled game board

02-26-2003, 08:11 PM
Hi, I like to have a game on a gameboard that is build up of hexagons. In the beginning al hexagons are blue, if a user clicks one it should turn yellow. Does anyone have an idea how I can detect which hexagon is clicked on the gameboard (and what the best way is for building this map)?

02-26-2003, 08:27 PM
You might want to read these:

and look at this section:

The articles are all in C/C++ but the theory is exactly the same and the code fairly straightforward and easily convertible to VB.

02-26-2003, 08:34 PM
Thanks a lot, I start reading today.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum