TGC Codebase Backup



Multiple Objects to 1 by Silvester

30th Oct 2006 12:01
Summary

This code will get multiple objects into 1 .dbo file.



Description

This code is a very simple example of how to get multiple objects into 1 Dark Basic Object file.it works fairly well and is commented with usefull things about it.

I hope this helps anyone.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    Make Object sphere 1,200
Make Object Cube 2,100
Position Object 2,200,0,200

for n=1 to `Fill your object count here

Do
If Spacekey()=1 then save object "obj.dbo",n `keep space pressed until an error pops up.then the file is created.this can be made different with buttons.
loop

next n