meat_madness_redux/godot/addons/dialogic/Documentation/Content/Events/030.md

1.0 KiB

Audio Events

The Audio Event and Background Music Event are very similar, so they are explained together image

The Audio Event can be used to play sounds. In contrast, the Background Music Event is supposed to play long pieces. Only one background music file can be played, but it can fade from one to the next.

Options

Select the audio file that should be played. You can clear this selection with the garbage icon.

Then you can set a AudioBus to use and a preferred volume level. More about AudioBus' here.

The Background Music Event additionally has a option for the fade length.

Is the audio looping when you don't want it to?

The Audio Event doesn't loop by itself. In Godot, looping of audio is mostly due to how you imported it (default for .ogg files).

To solve this:

  1. Select your audio file.
  2. Go to the import tab (it's next to the scene tree tab by default)
  3. Uncheck the loop checkbox.
  4. Hit re-import.