Hello all,
I'd like to play sounds randomly from a large list of sound clips.
I don't think it's possible to store audio objects in an array.
And I'd like to avoid a solution where I need to test a parameter (random number) against all audio objects represented by a number.
i.e.
If randomNb = 1 play("sound 1")
If randomNb = 2 play("sound 2")
etc.
I'm looking for something smart so that I could use for different situations (i.e. random jump sound, random walk sound, random background music, etc.)
Any ideas?
Ouais