Greetings, I hope that this is the right place to ask a question related to programming in Godot. (I am new to the forum!)
I am a self-taught hobby-programmer, and my experience with Godot is not to extensive yet. I'm working on a game in the vein of something like StarFlight or Star Control 2, and I am currently working on it's starmap. What I want to do is to create a scrollable starmap where a cursor object will display the name of the star it touches. And my question is this;
Would it be better to spawn these stars as objects with their own collission masks, or is it easier to simply have a large list of x,y coordinates focused on the center of the stars, to which the cursor object you move over the starmap responds? The latter seemed best to me, but I figured I could not only be wrong about this, but there might also be other better options. (Again, I am self-taught, this is literally the first time I'm asking for help. I'm... not great with that.)
Also if the latter option were indeed the best way to do it, is there an in build function (in a relevant pre-made object?) or some sort of method by which to check a list of x,y coordinates? I had been playing with a for loop when trying to get this working, and I just seemed to run into the problem that either it detected the stars correctly, but not if the cursor was not touching any stars. Or alternatively I could get it to detect wether it was or wasn't touching the final star in the loop or not, but not anything else. (I can of course provide code if/as need be!)
Also is it better to put a long list of coordinates and relevant star properties in the code, or in a seperate cfg/json/similar file?
I freely admit I might be an idiot missing something obvious or going about things wrong. (or even entirely out of my depth) But that is why I figured I'd try to get some input of course! See what people more familiar with Godot think. Checking it's reference material ultimately can sometimes only get you so far. (And that is certainly often rather concise.)
Thanks in advance!