How do I get a node by searching it.
onready var objectA = get_node("blocksA")
I need to find it because the position and child could be different every time.
Thanks for help.
var currentObj = get_tree().get_nodes_in_group ("group")
get_node returns exactly one node specified by the path parameter, not all nodes matching this name. To find all nodes matching a certain criteria, you could assign them to a group (e.g. "group_blocksA") and access them with
onready var objects_A = get_nodes_in_group ("group_blocksA")
(see https://docs.godotengine.org/en/3.1/classes/class_scenetree.html#class-scenetree-method-get-nodes-in-group )