#Map idea

5 messages · Page 1 of 1 (latest)

strange hamlet
#

I'm fairly new to unity and I'm wondering if its possible to make a map system like the one in the video I added where you can select and deselect countries on a map like in the video or by clicking on them. I've been thinking how I could do this but couldn't find an efficiënt solution

next anvil
#

They're probably using a similar system as what map games are using (eg EU4 in screenshot). There is an individual map of provinces/states/countries/... where each element has a unique color. When detecting a mouseclick, you check what color pixel you're hovered over, and then look up what province/state/country matches the color (using a predefined map/dictionary)

#

Based on that logic you can display whatever visuals you want

#

When just showing countries your tiles can just match their borders ofcourse, no need to use a map as subdivided as this one

strange hamlet