If Image is checked?
TouchTiltGames
Member Posts: 1,162
Bah I'm so close with this but I just can't get it.
In my options screen I want to have 6 images in a line, when you click one, it puts a checkmark above it. There can only be 1 of the images "checked" at a time.
Anyone know of a tutorial for this situation?
In my options screen I want to have 6 images in a line, when you click one, it puts a checkmark above it. There can only be 1 of the images "checked" at a time.
Anyone know of a tutorial for this situation?
Comments
So once one is pressed its attribute will be one, and no other ones can be checked because not all of the attributes are 0.
Then, when an actor is pressed, you have it set the game attribute to an integer 1-6 (each having it's own number).
so...
when actor receives touch
change game.checkBox to 4
Then, have 2 rules in each actor.
1st rule (example is for actor #4):
when game.checkBox = 4
change self.checked to 1
OTHERWISE
change self.checked to 0 (this is the part that makes it impossible to have 2 selected at once)
2nd rule:
when self.checked = 1
change image to checked image.