A simple solution to generate events while playing a sound resource.
Ever wanted to recreate the silly koopa dance that is timed with the music (BAH BAH)?
With this solution that is possible!
AudioEvents is available from the offical asset library!
AssetLib
on the topAudioEvents
Alternatively, clone the repository and copy the addons/AudioEvents
to your own addons/
directory in the project.
Do not forget to enable the plugin in the Project settings!
AudioEventPlayer
AudioStreamPlayer
. (alternatively, add the AudioEventPlayer
as child to the AudioStreamPlayer
)AudioEventStream
resource under the AudioStreamPlayer
.AudioEventStream
resource an audio file as resource and (optionally) a name.Event Times
array with float numbers that indicate the time at
which an event needs to be fired.soundEvent
signal from the AudioEventPlayer
Open example.tscn
for a simple example.
If anything is not working, please open an issue via the issue tracker on GitHub.
Feel free to create a pull request with suggestions/bug fixes!
This project is MIT licensed, you can do whatever you want with it :)