Generate a random sound on a touch press

Hey everyone,

It's my first post here so I may be a little naive. :) I'm making a small app where the core mechanics are that when you press on a character's face, one of 16 morale-boosting phrases plays. I want it to be random so the longevity of the app's usefulness is extended.

So what I'd be looking to do is set up a game attribute and then establish that only 16 sounds will play and then reset it back to 0 after the touch is pressed so that the cycle can begin again. How would I go about that?

Thanks

Comments

Sign In or Register to comment.