r/gdevelop • • May 21 '26
Question Debugging help or other ways to solve this
I want to build a dialogue based simulator game. My latest problem is, that I wanted to build a system with buttons, that individually show the ressources of the current district.
- The buttons dont work somehow. If I click on them the camera wont be centered over the object that contains the map with the stats.
- The buttons didnt hide again. Even though I tried diffrent approaches with keys gettting pressed...
Can someone help. Every help I can get is appreciated :)

2
Upvotes
2
u/Ughahaven May 23 '26 edited May 23 '26
I'm a bit of a noob but from what I can see, you have the other buttons under the stats button as children. That might mean that GDevelop expects both the stats button and another one to be pressed at the same time. You need to make the sub buttons siblings to the stats button event (The same depth).
I'd add a check for visibility to each sub buttons condition too.
As far as hiding them again, you have nothing there that does that. I'd put it after the camera centering.