|Topic was automatically imported from the old Question2Answer platform.
I currently am creating AudioStreamPlayer nodes from code when a button is pressed. When that button is pressed again, the audio is meant to fade out using a Tween also generated from code. What I don’t understand is how to have the Tween node delete itself when the Tween is over.
When the Tween node is created, the following code is used to connect the “tween_completed” signal, but clearly I am not using “queue_free” properly, or something else.
WeatherTween.connect("tween_completed", WeatherTween, "queue_free")
If I am understanding this correctly, this should connect the WeatherTween’s “tween_completed” signal to itself, such that the signal triggers the node to delete itself at the next frame.