File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- # GodotAudioEvents
1
+ # Godot Audio Events
2
2
A simple solution to generate events while playing a sound resource.
3
3
4
4
Ever wanted to recreate the silly koopa dance that is timed with the music (BAH BAH)?
5
+
5
6
![ BahBah] ( ./doc/mario_example.gif )
7
+
6
8
With this solution that is possible!
7
9
8
10
### How to use?
9
11
10
12
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`)
12
14
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 .
14
16
5 . Fill the `Event Times` array with float numbers that indicate the time at
15
17
which an event needs to be fired.<br>
16
18
TIP: use the Audio preview feature on the audio source to have an idea of the timings.
17
- 
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
+
19
22
20
- ![ Example GIF] ( ./doc/quick-example.gif )
21
23
22
24
### Example
23
25
Open ` example.tscn ` for a simple example.
24
26
27
+ <img src =" ./doc/quick-example.gif " width =1000/ >
28
+
29
+
25
30
### License
26
31
This project is MIT licensed, you can do whatever you want with it :)
You can’t perform that action at this time.
0 commit comments