I have 3 types of
Buildings. I want to create let's say 20 of them, at random, with their
translate also random. I'm trying this code, but I think it overrides each one witht the latest one:
onready var scenaryPlaneDims = get_node("Floor").scale
var building1Instance = preload("res://Buildings/Building1.tscn").instance()
var building2Instance = preload("res://Buildings/Building2.tscn").instance()
var building3Instance = preload("res://Buildings/Building3.tscn").instance()
# Called when the node enters the scene tree for the first time.
for n in 20:
# Called every frame. 'delta' is the elapsed time since the previous frame.
How can I create individual instances of those Buildings with specific attributes?