RandomAudioPlayer 2D
D

Publisher

derwenzel

RandomAudioPlayer 2D

2D
Audio Random Sound Playback Management Children Volume Effects

A simple node that selects a random child and plays the audio

RandomAudioPlayer

A simple node that selects a random child and plays the audio.

๐Ÿงช Installation

  1. Download for Godot 4.x
  2. Unpack the random_audio_player folder into your /addons folder within the Godot project
  3. Enable this addon within the Godot settings: Project > Project Settings > Plugins

๐Ÿ“š Getting started

example

    @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