Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | abtin0 |
Hello,
I’m probably missing something. I try to assign a new audiostream to my AudioStreamPlayer but I get "Invalid set index ‘stream’ (on base: ‘Nil’) with value of type ‘AudioStreamMP3’.
I’m pretty sure I did something similar in my other projects (although they were godot 3).
`
var path = "res://audio/" + str(audio_array.pop_front())
var audio_stream : AudioStream = load(path)
audio_stream_player.stream = audio_stream`
Thanks in advance.