Start with a Container node to house our information
Add a MarginContainer node as a child
This will represent the money the player has
to spend on turrets and upgrades
At the top of the Viewport
Click on the Anchor Presets button
Click on the Margin Container
Expand the Theme Overrides property
Expand the Constants property
Set a 16px margin on all side
The MarginContainer will be
in front of everything in our scene
to prevent it from interrupting mouse clicks
which could disrupt turret placement
Set Filter mode to ignore
Add a Label as a child of MarginContainer
Click on the Size Settings button
Next to the View button in the Viewport
add the word TEST as a placeholder
In the Label Settings Property
Add a new LabelSettings Object
Click on LabelSettings to expand it
Expand the Outline Property
Add a new script to the Bank
Add an export variable for starting gold
Add an onready variable to access the label
Create a set variable for the gold
Set gold to the parameter gold_in
Choose the biggest number between
gold_in and 0 and set that to gold
(This ensure gold cannot be negative)
Update the label to display current gold
In the ready function set gold to starting gold