toggleVisibility block

Use this block to toggle the visibility of one or several components

Add a gauge and button on stage, and right click on the button, and select "create event > mouse > mouse click" :

Switch to the blocks mode.

In this example the visibility of the component named "Gauge" will be toggled:

The user can also toggle the visibility of several blocks by replacing the "component" block with a "queryAll" block:

(this will make all components, including the button toggle, so the user won't be able to press it a second time)