Hi everyone, I have a problem and Im struggling in finding the solution. I have to update a text label from a script, the text label is located in another node the Canvas "HUD/Coins"
Have a look at the code below, this line is wrong: get_tree().get_root().get_node("MainScene2D").get_node("HUD").coins.text = String(player_data.coins)
any help please?