I'm creating a simple 3D space shooter (think StarFox). So far I have three scenes, "Space" is a big empty pile of thing for things to be in and two child scenes, "Ship" which is the players ship they control, and "SimpleUI" which is a debug UI that shows the ship status in a 2D HUD.
In order to show things the Ship object has keyboard controls, and whenever the speed changes I emit a signal with throttle_changed.emit(throttle) where throttle is the ship's current speed after doing all the physics calculations. So how I tell the label in the UI to listen for a change in the Ship object? I tried
func _ready():
var ship = get_node("Ship")
ship.throttle_changed.connect(_on_throttle_change)
But I guess that would only work if Ship was part of the scene, do I need to pass info up to the main "Space" scene then pass it down somehow?