Hello. I already made a toggle switch button: https://gyazo.com/d02c0eb9cf1a5700850019549be49f9d (consists of 5 sprites; settings button, blue bar, info, sound & music).
I've managed to make the blue bar and the other items pop-up after the settings button is clicked.
However, I am struggling at making it disappear once you re-click again.
I've tried and didn't work:
1. Making a global variable (Settings_Clicked) with default value of 0. When the settings button is clicked, the value changes to 1. Afterwards, if the value is 1 and there's a click on the settings button then the rest of the items will be invisible.
2. Make 2 settings buttons sprites. The primary one (when not clicked) would be visible until it's clicked. Once it's clicked, it will become invisible and the secondary button will appear among with the rest of the items. Once the secondary button is clicked, the button itself and the popup will be hidden and the primary button will be visible again.
Please advice. I switched from native iOS Swift development and Stencyl to Construct 2 and I am having a bit of hard time understanding its programming mechanics.