I have to fill a dictionary in a loop with multiple info from the node:
var enemiesOnStage = ""
for _e in get_tree().get_root().get_node("MainScene2D").get_node("Enemy A").get_children ():
enemiesOnStage = {
"enemy" : _e.get_name(),
}
print (enemiesOnStage)
... but of course in the example above I'll get the name of the last saved enemy node, How can I do that please?