I am trying to open/close a menu when a button is clicked. The menu is set to "Invisible" initially, and when the button is pressed, it will be set visible. If the button is pressed and the menu is visible, it will be set visible. However, it isn't working. If I have only one of these set, it works, but as soon as I add both for opening AND closing it doesn't work.
Here is the event sheet:
I am new to construct but not to programming so I'm pretty sure my logic isn't off, I just don't know how it works yet.
Edit: Apparently I cannot post a screenshot. I will explain my event sheet:
on left mouse click on InventoryButton,
if inventoryBack is not visible, set visible
if inventoryBack is visible, set invisible
The point of this is to be able to toggle visibility by clicking on the inventory button