svxtc

I was wondering if anyone out there has written a level editor for their XNA game If so, how did you write it and did you use XNA to write it I am mostly interested in 3D games.

I am trying to decide whether I should create the level in a modeling program and inport that for the enviroment, but this seems like it would be far to resource consuming.

Any help would be greatly appreciated. :)

Thanks.



Re: XNA Game Studio Express How to create a level editor

waruwaru

One nice thing about creating a level editor in XNA for your own game is that you can re-use some parts of your engine. You can tailor the editor with commands/behavior specific to your own game. For example, if you want to keep track of where the walls are in your game. When user adds/removes/modifies a wall, you can record that information instead of calculating it later. But it's probably alot of work. Importing level from a modeling program works. But you will probably have to do lots of calculation and translation to make your game work with it.




Re: XNA Game Studio Express How to create a level editor

svxtc

Im thinking about making a RTS game and it would be a lot easier if I had a level editor that I could use. I just don't know how I would go about making it easy to put together. I would like to be able to create a menu system that I can choose objects to put into place but I don't there is a way.



Re: XNA Game Studio Express How to create a level editor

svxtc

Do you think that it would be easier for me to make a "game" in XNA and really make it act like a level editor Like load in the objects that I want to position and then put them in their places and after I have everything in place, I can save the file with all positions. After that I guess that I can load the file into my real game and read all the positions and place the objects where they are supposed to be. I don't know if this is an efficient use of XNA or will this just be a drain on the processor to load all of the objects.

Any help is always appreciated.

Thanks.





Re: XNA Game Studio Express How to create a level editor

XNA-Mordt

You can load in objects as and when you need them so you don't have to load them all in at runtime. If it were me I would work on creating the level editor first then a seperate program to run the game using components I've already built for the level editor.

As long as your program is structured well by the time you've finished your editor your game engine would be half complete. There's no right or wrong way of achieveing what you want either, that's the beauty of programming, building solutions for the problem at hand.






Re: XNA Game Studio Express How to create a level editor

svxtc

So, I was thinking than, is there any way to make multiple views. For example, (top, front, left, and perspective) I think that it would make it a lot easier to move things around. I just don't know how I can seperate the screen in four to make the views. I guess I can make a command that changes the views one by one, but that would be harder to see what is going on.

Thanks for any help.





Re: XNA Game Studio Express How to create a level editor

XNA-Mordt

You certainly can have multiple views and it's not just good for creating level editors either, you can use them for multiple players.

Check the documentation out here.

http://msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.graphicsdevice.viewport.aspx






Re: XNA Game Studio Express How to create a level editor

waruwaru

svxtc wrote:

So, I was thinking than, is there any way to make multiple views. For example, (top, front, left, and perspective)

Sure, see this thread, just think it as 3 way split screen:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=697178&SiteID=1






Re: XNA Game Studio Express How to create a level editor

svxtc

Thanks, that is ridiculousy easy! WOW!