Opening/Closing small menu(popup) not working?

Get help using Construct 2

Post » Sat Dec 06, 2014 4:35 am

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
B
3
Posts: 2
Reputation: 179

Post » Sat Dec 06, 2014 5:15 am

Posting a .capx makes this so much easier. Use dropbox (you don't have the rep to post attachments).

Welcome to the forums. :)
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Dec 06, 2014 7:49 am

TiAm wrote:Posting a .capx makes this so much easier. Use dropbox (you don't have the rep to post attachments).

Welcome to the forums. :)



Great, thank you! I'm excited to be here. I made a tiny file where you can see the issue I am having with clicking to toggle on/off. If you toggle to disable the second event, it works (minus closing) but if both are there it does not work.

I have no idea how to post a link with my current rep as it is. It's a dropbox link to the capx file, and the characters following the normal dropbox url (I'm sorry to do this) is

s/ee0rbzfg56bxwkr/testFile.capx?dl=0
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests