Quick Question about my project

Godot Version

4.5

Question

I am trying to build a game which is tower building game, i have got the main game working so far but i am having issue with the minimap, it either comes up black, grey or blue/brown but only the top 1/4 of the minimap as i am ew to godot i suspect i am coding it wrong, would anyone be able to have a look and advise what i am doing wrong so i can get the minimap to look like the main map with clickabilty and scrolling with highlightor to know where you are on teh minimap and the minimap show everything the main map shows?

It’s very likely that nobody will be able to / willing to help you here if you show absolutely nothing useful.

Please show relevant code bits, screenshots, maybe even a video if it’s harder to show with a screenshot.

Tell us what you want to happen vs. what actually happens.

Overall put a bit more effort into asking for help, we can’t read your mind.

Hi Tibaverus, I was not sure if anyone would be willing to help so i kept the question to ask if people could help but i understand what you mean i will post this now.

the bit on the left is the main map the bit on the right is the minimap, basically what i am trying to do is make the minimap replicate the main map so you can click on the minimap and move to that part especially when you are zoomed in this is currently zoomed out fully.

Its really tough to say. There is a lot of positioning code that needs to be checked by running it.
If you are willing to host the project (or a dumbed down version) on github I would be happy to look at it.
At any rate (and I don’t know if this is the problem or even related to the problem) this code creating a rect seems flipped on the height calculation

class MiniBackdrop:

...
draw_rect(Rect2(Vector2(left, botv), Vector2(right - left, topv - botv)), host.SKY_COLOR, true)

Shouldn’t it be botv - topv (bottom - top)?

There are really nice tutorials out there for creating minimaps. Maybe you should check one of those also.
Here is one that I really like:

https://medium.com/@merxon22/godot-create-your-first-2d-minimap-c43dfda01802

that tutorial seems perfect as it doing excately what i want

1 Like

i had to flip it because the tower itself was building upside down because i am using negative floors as well as postive

im happy to host it on github my lpan is to eventually host it there so people can modify it or create addons of there own just need to wokr out how i create a github hosting

https://github.com/andrewcrawford131/opentower i need to link this to my other computer as this computer is earlier build with errors

Quoth the Raven “404.”

i had it as private made it public hopefully it not 404ing now i will test from my other computer when im not logged in

it appears to be viewable now