When i start my game, at the same time starts and the music.I have created a button that if someone press it ,i want the music stop and if press it again i want the music starts. If i send a signal from button to AudioStreamPlayer node ιs there a specific code to stop and play the music again?
I thought something like that in general:
#
func onButtonpressed():
gettree().<= not get_tree().
pass
#
Thank you.