(solved) buttons being clicked even when hidden

How do I…

hide my UI without it being clickable

What is the actual result

When it’s hidden we can still press the buttons





Pause 1 = UI pops up
Pause 0 = no ui

Everything in the UI is in this layer

base layer is most of the sprites

background is the grass

I know deleting and creating the UI instead of hiding/showing would fix it but I don’t know if it’s the best option

okay, I looked around and fixed it by adding “visibility” condition
image

If the UI is on its own layer then you could simplify things by hiding and showing the layer instead of the individual objects. You can also create 1 event with the condition like UI_Layer is visible and all of the related events as subevents.

oh yeah, that would be better, thanks :DD

1 Like