RandomAudioPlayer
A simple node that selects a random child and plays the audio.
๐งช Installation
- Download for Godot 4.x
- Unpack the
random_audio_player
folder into your/addons
folder within the Godot project - Enable this addon within the Godot settings:
Project > Project Settings > Plugins
๐ Getting started
@onready var rnd_audio_manager = $AudioManager
func your_func():
...
rnd_audio_manager.play() // selects a random audio child
...
The node has some fieds that overwrites the values of the children:
- volume_Db_overwrite
- max_distance_overwrite If the field changes the value will assigned to all the children