Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Making a map editor...

Author
Message
Robin
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 1st Apr 2003 18:14
I'm in the process of making a Map editor. At the moment you can add objects and lights and you can save the maps and lod them in DB. The next thing I will do is add sounds and maybe a matrix editor.

However, when the user adds an object, it is like making a new object each time, which will have an effect on speed in a final game. When the file can be loaded into DB, i have added a command to make the objects static objects and have put object occlusion on, which I thought would increase the speed slightly. However, should I be doing it a different way (this question goes particularly to people who have made map editors... ), ie. making all the objects into meshes and then adding additional objects on as limbs - would this increase speed or not?
Thanks
Robin
http://www.thegameszone.has.it
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 1st Apr 2003 21:28
Give an option to make them into static objects when they are loaded into db. Some people may want to move their objects in game so give a choice.

Why the hell'd you ask me for crying out loud!?!
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 1st Apr 2003 22:43
yes and on some computers , statics objects crashes !

Onyx10
22
Years of Service
User Offline
Joined: 31st Mar 2003
Location:
Posted: 2nd Apr 2003 04:58
How do you load a pre-made map into darkBASIC?

Mnemonix
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 2nd Apr 2003 16:10
It depends on the map. And it also depends on the way the editor used to create it saved the file.

Where did his Ak-47 go.
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Apr 2003 18:26
You have a smaller program that determines what all the values in the saved file means, and makes a level according to that.

Why the hell'd you ask me for crying out loud!?!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 2nd Apr 2003 21:28 Edited at: 2nd Apr 2003 21:28
If you are having trouble with the load pauses, then you can use CLONE OBJECT. It's very fast and good for instantaneous object creation.

@Onyx:

Quote: "How do you load a pre-made map into darkBASIC?"


You first have to save all the information to a file, then write some code that will open the file, read the information and create objects from there.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
Robin
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 3rd Apr 2003 18:08
Clone object?
is that a DBP command?
would loading seperate objects as additional limbs have any effect on speed or not?

http://www.thegameszone.has.it

Login to post a reply

Server time is: 2025-05-16 02:57:53
Your offset time is: 2025-05-16 02:57:53