Event Audio
Event Audio is a Godot plugin for simple, event-based audio triggering in 2D and 3D games. It allows associating audio resources with event triggers, playing them with a single line of code, and managing audio banks at runtime.
https://github.com/bbbscarter/event-audio-godotPreview Images


Event Audio: Streamlining Audio Triggering in Godot
Event Audio is a powerful Godot plugin designed to simplify and enhance audio management in your games. It offers an event-based system that eliminates the need to modify scenes or nodes directly when adding audio, making your workflow more efficient and organized.
Key Features
- Event-Based Audio: Associate audio resources with specific event triggers, enabling you to play sounds without directly modifying scenes or nodes.
- 2D and 3D Support: Seamlessly integrates with both 2D and 3D game environments.
- GDScript and C# Compatibility: Works flawlessly with both GDScript and C# scripting languages.
- Audio Variants: Link multiple audio variants to a single trigger, and the plugin will randomly select one to play, adding variety to your soundscape.
- Hierarchical Trigger Lookup: The plugin's trigger lookup system supports hierarchical specialization using a '+' separator, allowing for nuanced audio control.
- Runtime Audio Bank Swapping: Easily swap audio banks during runtime to adapt your game's audio to different situations.
How it Works
Event Audio utilizes audio banks that map trigger strings to audio assets. You can mount these banks in your scenes and trigger audio events using a simple function call, such as EventAudio.play_2d("hit", thing_playing_audio)
or EventAudio.play_3d("shoot+laser", my_player)
. The plugin handles automatic position tracking and cleanup of triggered audio, ensuring a seamless and efficient audio experience.