Skip to content

Commit 2a72f9d

Browse files
committed
2 parents 3dece50 + 084896f commit 2a72f9d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
1-
# GodotAudioEvents
1+
# Godot Audio Events
22
A simple solution to generate events while playing a sound resource.
33

44
Ever wanted to recreate the silly koopa dance that is timed with the music (BAH BAH)?
5+
56
![BahBah](./doc/mario_example.gif)
7+
68
With this solution that is possible!
79

810
### How to use?
911

1012
1. Create an `AudioEventPlayer`
11-
2. Attach an `AudioStreamPlayer`. (alternatively, add the `AudioEventPlayer as child to the `AudioStreamPlayer`)
13+
2. Attach an `AudioStreamPlayer`. (alternatively, add the `AudioEventPlayer` as child to the `AudioStreamPlayer`)
1214
3. Create an `AudioEventStream` resource under the `AudioStreamPlayer`.
13-
4. Give the `AudioEventStream` resource an audio file as resource and a Name.
15+
4. Give the `AudioEventStream` resource an audio file as resource and (optionally) a name.
1416
5. Fill the `Event Times` array with float numbers that indicate the time at
1517
which an event needs to be fired.<br>
1618
TIP: use the Audio preview feature on the audio source to have an idea of the timings.
17-
![example](./doc/example.png)
18-
6. Connect to the `soundEvent` signal from the `AudioEventPlayer`
19+
<img src="./doc/example.png" width=40%/>
20+
7. Connect to the `soundEvent` signal from the `AudioEventPlayer`
21+
1922

20-
![Example GIF](./doc/quick-example.gif)
2123

2224
### Example
2325
Open `example.tscn` for a simple example.
2426

27+
<img src ="./doc/quick-example.gif" width=1000/>
28+
29+
2530
### License
2631
This project is MIT licensed, you can do whatever you want with it :)

0 commit comments

Comments
 (0)