Hello. I already made a toggle switch button: (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.