Reusable component: a set of radio buttons as a single sprite. Usage: * the global variable buttonSet1.selection indicates which button is selected * message buttonSet1.changed is broadcast when the selection changes To change the available options: 1. Design costumes: 1 costume per selected option Costumes must be in same order as your options. Buttons must all be the same width and evenly spaced. 2. Set sprite size to 100. Measure width of whole sprite (make variable offset.x visible and click near right edge). This is your 'set_width' value to pass in to the setup block. 3. Measure width of single button; add half the gap to the next button. This is your 'but_width' value to pass in to the setup block. 4. Test carefully and adjust your measurements until they're accurate. 5. Now you can change the size to suit your project.
The number of buttons in the set is fixed at design time. For a more flexible solution see https://scratch.mit.edu/projects/409419800/