func _ready(): print("runs when node and all its children has entered the scene tree") func _process(delta): print("runs every frame (frame rate is variable), last frame was %d ms ago" % delta) func _physics_process(delta): print("runs at fixed rate, typically 60 fps") # Print variable type (often it's quicker to CTRL-click some func to see return type in docs) print(type_string(typeof(size))) # If you create another StaticBody2D rooted scene you can instantiate it many times and set .scale uniquely on each instance: $Top refers to a child element of the current node named "Top". $ScreenEdges/Top refers to an element called Top inside an element called "Top" which in turn is a child element of the node that the current script is attached to.
You can drag nodes into code to get a reference.
Changing .position on most nodes will move the center of that node onto the assigned position. However, all UI elements inheriting from Control uses the box model and they have their origin in their top left corner instead.