"Select One" option like a quiz
I am making an app and there will be one group of buttons. How do I make it so that when you select one within that group, any other selected will be unselected so that the user can only pick one at a time?
Comments
Give each button a boolean attribute.
For the sake of this example we'll say that button 1 is pressed and want 2,3,4, and 5 turned off.
Inside each actor put a rule that says, when X happens set/change attribute boolean to false. (X can mark when a user touches another button, or if the user gets something right, etc. all your choice):
You need to define what false will do. It could destroy the actor or run an animation, or change the button icon, etc.
Hope this helps. There's many ways to do what i think you want to do. Perhaps you can clarify with example if this isn't helpful.