🎲Randomization
Introduction
To create a game with exceptional immersion and rich, vivid sound effects, using a vast sound library is one option. However, finding suitable and sufficiently varied sounds can be challenging, and employing numerous audio files can significantly increase the game's size. Therefore, the ideal approach is simply to use randomization.
How To Use?
BroAudio provides numerous randomization methods, all of which can be configured in the LibraryManager without writing any code.
Audio Clips
If an AudioEntity has more than one clip. You can set its PlaybackMode to 'Random'. It will randomly select one AudioClip based on its weight when it's played. Probability is calculated as Weight/Total sum of all weights.
Volume
Toggle the [RND] button next to the 'Master Volume' setting in AudioEntity, and set the random range.
Pitch
Toggle the [RND] button next to the 'Pitch' setting in AudioEntity, and set the random range.
Last updated