- Home /
how to make an interactive world map for conquest game
hello im trying to make a world conquest game where a player chooses a region to start with ten expands there empire to other regions and conquer them in till they own the whole world but my first problem is how am i suppose to create the world map i was going to use an image but i want it to be interactive and make different areas change color depending on the who controls the area then i was going to make 3d models of each region in blender then put them all together in unity but i cant model d continents right in the first place so idk how to make a interactive world map Plz help keep in mind its modern warfare so its not just land battles its also naval and air.
Answer by robertbu · Jul 31, 2014 at 06:52 PM
A solution commonly used for this problem is to make a mask that matches the aspect ratio of the map where each region you want to identify by clicking is a different color. You can then use the textureCoord in the RaycastHit structure to get the color and identify what region was clicked. Here is a question where someone is trying to do a map:
http://answers.unity3d.com/questions/462851/how-to-use-part-of-an-image-for-a-button.html
And in this question I provide some sample source for doing this hit testing (for buttons, though the concept is the same):
http://answers.unity3d.com/questions/516609/empty-spaces-in-buttons-are-detected-by-mouse.html
well im trying to ue the geographic colors of the map ins$$anonymous$$d of alpha colors but thx
Answer by Kronnect · Aug 05, 2015 at 07:27 PM
Hi! This is the main reason I created World Political Map. This is an interactive geographic-based asset that provides what you need. Take a look: https://www.assetstore.unity3d.com/en/#!/content/41890
At our support forum you can find more videos about new releases which provide extra goodies like a converter, a ticker manager and a decorator.
Your answer
Follow this Question
Related Questions
games with randomly shaped maps 1 Answer
Need help with strategy terrain. 1 Answer
2D Pathfinding: how to create navMesh 0 Answers
My random tree spawner isn't working 1 Answer
Map creation and movement 3D 0 Answers