Kajunkat wrote:
I want to make a button that selects a random gender for a sprite. How can I do this? Please respond asap!!!!
There are several ways...probably the easiest would be this:
when Random Gender clicked if <(pick random (0) to (1)) = (0)> set [gender v] to [male] else set [gender v] to [female] endHope that helps!
Offline
A variable is the easiest solution, thats why AB3 said there were many possible ways. If you wanted to include a broadcast, you could do this:
when [Random Gender v] clicked if <(pick random (0) to (1)) = (0)> broadcast [male v] else broadcast [female v] end
Last edited by Prestige (2012-07-19 10:38:54)
Offline