how to spawn rooms for a generated level

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 1997
:warning: Old Version Published before Godot 3 was released.

if someone could give me a rough idea of how to spawn mesh objects. I know how to generate random layouts of rooms, but i’m new to GDScripts. :(((((

:bust_in_silhouette: Reply From: KRL
              
                var instanced_bullet=preload("res://impact.scn")

preload of bullet object/scene containg a bullet object with script moving it forward

                var bullet = instanced_bullet.instance()

assinging pre-loaded bullet instance to a new variable

                bullet.set_transform(get_transform())

placing not yet instanced bullet on start point of bullet trajectory

                get_parent().add_child(bullet)

instancing bullet obbject by adding it to a spatial