"Select One" option like a quiz

jeanbobjeanbob Member Posts: 5
edited October 2012 in Working with GS (Mac)
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

  • gamesfuagamesfua Member Posts: 723
    Hello there jeanbob! I'm not 100% sure i follow the question but here's some potential help. If lets say you have five buttons and once the user picks one of those buttons you want four of the buttons to turn off- here's one way to do it.
    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.
Sign In or Register to comment.