Hi Jozers, there is a difference between a matrix and a map editor. A basic matrix editor will allow you to mold/edit a matrix landscape.
A basic map editor is like a world editor, it it can either allow you to mold/edit the matrix and/or add objects etc to the map.
There are many ways to make a map editor, I have never tried to use the mouse to position objects in DBC, just DBP so I am unsure if it can be done. But a VERY simple editor can allow you to load a object then use the arrow keys to move the object.
Basic functions would be:
function OBJECT_load(objectNo,filename$)
load object objectNo,filename$
endfunction
function OBJECT_move(objectNo)
x# = object position x(objectNo)
y# = object position y(objectNo)
z# = object position z(objectNo)
if upper$(inkey$()) = "W"
x# = x# + 10
endif
if upper$(inkey$()) = "S"
x# = x# - 10
endif
if upper$(inkey$()) = "A"
z# = z# + 10
endif
if upper$(inkey$()) = "D"
z# = z# - 10
endif
if upper$(inkey$()) = "E"
y# = y# + 10
endif
if upper$(inkey$()) = "C"
y# = y# - 10
endif
position object objectNo,x#,y#,z#
endfunction
Then all you have to do is save the object number, filename, and its position to a text file. To load it, simple read the text file and load/position the relevant objects in the right place.
If you look at the other matrix and map editors, get a feel for the amount of work that has been done, look at their interface and all the different functions they have. It's going to be a lot of work but good luck to you!
J
Hello!