Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Pin | |
Old Version | Published before Godot 3 was released. |
In Godot 2.1.X
there is SamplePlayer
I can put all my sfx
make is singleton and call it
In Godot3.0
do I have to create all the AudioStreamPlayer
node for my sfx?
I believe Juan mentioned on facebook that a SampleList for AudioStreamPlayer would be ideal. However, for now you can just create 5-10 AudioStreamPlayer nodes and cycle through them in a function .play("xxx")
, check which one isn’t currently playing, to mimick the polyphony effect. Have to keep them tracked in a playlist
array (what I do until a native fix is implemented)
wombatTurkey | 2018-01-02 10:48