How do I randomly select a sound. For example I want my bullet's when they impact a certain enemy to select from two separate bullet impact to metal sounds. To create a more authentic sfx overall.
I figured it out and it works very well
Random Metal sounds by N7Effect, on Flickr
Just set two "Global" Variables. For the sound selection.
I also have Global Variables set for SoundVol, MusicVol.
Randomly select from two Variables Thread
Develop games in your browser. Powerful, performant & highly capable.
You could also use 'Play by name' and enter:
choose("sound1", "sound2", "sound3")
or however many sounds you have. Saves some events.
You could also use 'Play by name' and enter: choose("sound1", "sound2", "sound3") or however many sounds you have. Saves some events.
This method works really well and is cleaner;]
Ashley
Well that saves time. Leave it to me to find the hardest way possible. Thanks :)