Build string and use it as AaudioStream.stream name
Hi all, new member here.
I was wondering if there is a way to pass a string that is dynamically created as an AudioStream object.
For sure there is and i'm too new/dumb yet to figure it out.
sound var r500 : AudioStream = load("res://Sounds/500_"+name+".ogg")
and then play it like this:
snd = "r"+str(int(rpm)) $sound.set_stream(snd) $sound.play(0)