sorry for my inactivity, but i just wanted to ask, what is the best way to make an interactive world map with provinces, states and all that stuff, like the map in some grand strategy games like hearts of iron iv and europa universalis 5. for reference, something like this:
That’s a tough one… as was discussed (and argued about) in this thread:
Basically since you don’t have direct access to rendering with GD, you’ll have to either draw each province as its own sprite, or compromise by using “nodes” (i.e. just a coordinate point of each province is used for selecting / marking)
I think magic sofas right - and it does need the link to the other thread
my wife asked what was up with me earlier - ‘im just trying to work out how to do something’ i replied. i was staring into space trying to think of an easy way to do this …i just dont think there is one.
i dont think either, i think i need to uh, convert the shp file into an csv and loop for each country id and draw each coordinate with the shape painter and such… i am gonna cry, i cant use godot because i am LIMITED TO MY BLOODY IPAD
oh yea, off topic but legit your username reminded me of another game dev (shnary i think his tag was), hes the creator of countryballs at war so i nearly choked when i glanced at your user
WAIT, i have thought of a solution, what if i use an existing province map right, and it’ll be one whole image, each province on the image will be random different colors, and i use the readpixels extension to determine what province i am interacting with then somehow recolor the provinces and give each one a variable.
yes you can read the colour value if they’re all different colours - read the other thread that magic sofa linked. and you could have all the colour strings in an array to determine the province and then for recolouring them all individually …theres the ‘magically recolour them all individually’ extension - i think i’d suggested using shape painter and have all the points for each province stored and ready to go…but that’s lots of work too.
ohh okay, if the first one doesn’t work ill just use the second option. i heard you could apparently use csv files in gdevelop so ill convert a shapefile full of provinces and other stuff into csv and loop through every country id and coordinates… and yes i did read the thread magicsofa sent, i got a slight understanding on how i could possibly to this.
Can you elaborate further? How are you building and picking each province? What is your solution? (Might be helpful for @Dedonwaewal, who wanted a similar thing earlier this year)