Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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" :

Image Added

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 everythingall components, including the button toggle, so the user won't be able to press it a second time)