Game Development Community

Prefabs

by David Stocker · in Constructor · 06/05/2007 (12:48 am) · 3 replies

What is a prefab and how can I add brush assemblies to that list? I'm currently building up prefab components for a castle, such as stairs, arrow slits, walls, etc and will want to assemble them, lego like, later. I can also just keep all of my template objects in the map, but if I can add them to the prefab library, I'd like to.

#1
06/05/2007 (6:47 am)
Hello,

Prefabs is a csx/map file that you have to multi-instantiate in an other csx file.

Just copy .csx or .map files in /prefabs/ and relaunch Constructor.
You can add pictures (my_prefab32.png,my_prefab64.png,my_prefab128.png) in the directory as the others prefabs to display preview inConstructor.

Yves
#2
06/05/2007 (9:23 pm)
It worked like a charm!!!

Thanks!
#3
07/01/2007 (5:33 pm)
Would be great to have a Merge function.

So you don't have to make a prefab if you want to work on different parts of something in separate files for a while.