Is it in DBPro or DBC? This is in DBPro:
`the normal "setting the scene".
make matrix 1,1000,1000,20,20
position camera 0,100,0
xrotate camera 0
autocam off
`a variable like a switch for creating a new object.
new=1
`so the you can't hold the mouse down, and it creating thousands of spheres.
stop=0
`object number
obj=0
`object size
size=0
do
`controlling the camera
control camera using arrowkeys 0,0.1,0.02
`if the mouse is held down, then new=1
if mouseclick()=1 and new=0 and stop=0 then new=1
`the switch like part.
if new=1 then gosub make
`stopping you from creating thousands of objects without meaning to.
if mouseclick()=0 and stop=1 then stop=0
loop
`the actual make part!
make:
`adding one to the object number.
obj=obj+1
`adding 50 to the object size. NOTE: you don't have to use this, it just shows you that new objects are being created.
size=size+50
`making the actual object, using the variables.
make object sphere obj,size
`setting the stop variable to one, so that you don't create thousands of objects without meaning to.
stop=1
`setting the switch back to 0
new=0
return
I hope that's useful!
EDIT: Oops, I started posting before you guys, but posted AFTER you. Sorry!
We were all new people once.