I'm eventing an image based menu. The main menu works well, there;s no problem with it. However, there's a problem with the inventory.
I planned my menu like this:
When inventory icon is chosen, this common event is called:
The items are evented like this:
When right mouse button is pressed, the inventory screen should close. (See above) So, the inventory screen (the background) should be removed. Also, I have to close the inventory, so I turned switch inventory check off. as a result, the image shouldn't be shown (the condition is if switch inventory check is off, see third picture) because the inventory is off.
However, when I go to playtest, this happens: (I choose inventory icon)
the inventory shows up. But I don't wanna use it now, suppose. So I right click and the inventory closes.
But the image is still there -___- Isn't the picture NOT supposed to be there, since the switch is off? So many issues with this ughhhhh.
Also, I wwant the player to use right mouse button to open and also close the menu. If I open it however, using the same conditional branch as in the picture, it doesn't close anymore? What the heck is going on! I spent the whole afternoon doing this stuff. My head hurts and can't think
Please helppp *cries*
EDITTTT: Okay... I'm an idiot. A picture once shown remains unless it's erased.
So... I erased it in place of turning switch off. Now the image isnt shown at all after opening the 2nd time.