I have 2 AudioStreamPlayer2D, one of which is in the main scene. I tryed to access both from a different scene using:
onready var game_music = get_node("/root/path_to_music")
The one in main scene caused me no problem, but the other one returned null!!!
Attempt to call function 'is_playing' in base 'null instance' on a
null instance.
How can I access AudioStreamPlayer2D in other scenes!? and does been a main scene or not have any thing to do with this problem?
Thank you in advance :-)