Shapes of buttons
Hello,
Does a gamesalad actor or button have to be rectangular or square? Or could a button follow the contours of an irregular shape such as a state or country? I'm making a "find the state on the map" game. Right now, each state has a bullseye actor that the user touches. But it would look so much better if the state itself were the button. Rectangular/square actors are fine for Wyoming and Kansas, but not for Irregularly-shaped states like Californa or Idaho. I realize that I could change the bullseye actor's alpha to zero, but that would leave some parts of states unpressable.
Thanks,
Eli
Does a gamesalad actor or button have to be rectangular or square? Or could a button follow the contours of an irregular shape such as a state or country? I'm making a "find the state on the map" game. Right now, each state has a bullseye actor that the user touches. But it would look so much better if the state itself were the button. Rectangular/square actors are fine for Wyoming and Kansas, but not for Irregularly-shaped states like Californa or Idaho. I realize that I could change the bullseye actor's alpha to zero, but that would leave some parts of states unpressable.
Thanks,
Eli
Comments
Just cover each state with a few boxes (blank actors) . . . and make them invisible (alpha = 0):
Depends on what the rules do, if - for instance - clicking on a square adds +1 to a value, then clicking on a box adds +1 to a value (unsurprisingly!) . . . and clicking where two boxes overlap will add +2 to a value . . . (which you might not want).
So in this instance you might not want to use instances of the same actor . .
If on the other hand clicking on any box or any overlapping two boxes in California takes you to a new scene ("Congratulations, that's the correct answer, you have correctly identified California ! You win a lollipop and a signed photograph of a donkey!!") then it doesn't really matter that the 'go to next scene' (or whatever) is returned twice, so you can probably just option drag a bunch of boxes (instances) to cover the area in this scenario.
So . . . depends on what happens when you click on a box.
You can probably cover most states sufficiently with non-overlapping boxes if it's an issue, anyone who repeatedly presses on the small areas not covered by a box deserves everything that's coming to them and will eventually be weeded out of the gene pool anyway.