Description : Very straightforward, I have no idea why we can’t use a string to identify a sound and check whether it’s playing or not… And it’s a huge problem because it quickly becomes a hell to manage what numbers are already used or not for channel identification. This is a bad system.
A tag identifier should be usable for the “play a sound” action, “sound is playing” condition and for parameters in all related expressions as well.
Why this feature ?
Basic quality of life necessary to make Gdevelop usable for small and medium projects.
For instance Construct3 uses a much better tag system so there is no reason it can’t be done for Gdevelop.
Don’t forget to leave a
if you think this feature is important
4 Likes
It sounds a lot like the syntax or method used for tweens and timers. It could include the autocomplete system that remembers the previous entries so you could get the name used in the play action in other actions.
1 Like
Channel numbers are defined things in the audio engine (HowlerJS). It only accepts numbers (Known as IDs in the source project).
I don’t think it’d be feasible for the devs to start using strings for this as it is unlikely they’ll start their own branch of HowlerJS, although I’d love a separate tag system.
2 Likes
In the meantime I’ll try to build an action in a custom extension that can “play once” a sound with an internal tag system, because the current system is really messy.
Didn’t see any existing extension that aim to do that.
You might look at my “Play sound and music by filename” extension and see if its something close enough that you could extend out, but otherwise I’m not aware of anything close.
1 Like
A basic and trivial solution would be to use a variable (text) which would be the tag to reference the sound on canal.
Then, you could test the name contained in this variable based on the number of the cal.
Ex: the variable “Sound0” for the sound based on the canal 0.
A+
Xierra