I have a a button setup to play a sound when activated but if I yield to finish the sound before switching the scene it stutters the wav. Not sure how to fix this.
func _process(delta: float) -> void:
if $RayCast2D.is_colliding():
Sfx.get_node("Explode").play()
# yield(Sfx.get_node("Explode"), "finished")
get_tree().change_scene("res://Scenes/World.tscn")
commenting it out the sound plays just fine, but will immediately switch scenes.