June 2018
Beginner to intermediate
298 pages
7h 38m
English
Open Level.tscn (the base-level scene, not your Level01 scene) and add a CanvasLayer node. Instance the HUD scene as a child of this CanvasLayer.
Click on the Player node and connect its life_changed signal to the HUD's _on_Player_life_changed() method:

Next, do the same with the score_changed signal of the Level node, connecting it to the HUD's _on_score_changed.
Alternative method: Note that if you don't want to use the scene tree to connect the signals, or if you find the signal connection window confusing, you can accomplish the same thing in code by adding these two lines to the _ready() function of Level.gd:
$Player.connect('life_changed', ...Read now
Unlock full access