I am developing a construct2 game. I want a button that only appears when a popup window is shown, to be only clickable when this window is showing. I have tried to make a condition: "on layer visible" on the events referring to the click... didn´t work. I have tried to create a global variable "popup_is_showing" and work with that... still don´t work. I have tried to make only the object(not the layer) invisible at the start of layout and visible only when the popup appears... still not working! When i debug my game, i see that the status of visibility of my button is 0, which means it is visible. I have also tried
to move the button to an impossible Y(like 99999) when the popup is not appearing and moving it to normal location when the popup is showing... still not working.
My popup is a different layer with many objects.
I have already read this post:
And still my button which stands on a "popup_menu" layer is still clickable.
What else can i do to make my button only clickable when the popup window is showing?