I'm trying to make one, to create my new games faster. I've tried this one http://www.create-games.com/article.asp?id=1262, it works fine, but i can only retrieve tiles from the first line of the tileset ( between y0 and y16 ).
And if you know where i can download an example of level editor, or an open source game with a level editor. ( I use mmf1.5 )
There are loads of open source examples on the clickteam forums if you search for them. I found a really good example there a while ago, if I find it again I'll post you a link to it
hmm... i haven't found anything useful yet on the clickteam forums...
what articles did you people read to understand level editors ? ( if you needed an article )
It seems to me that everything I read here about level editors has to do with arrays and reading information from an ini file.
The level editor that I made for my Equin games was in Visual Basic, but the idea was to have a screen full of squares that you could select a square and then select what goes there. Each item you could pick had a text character value that was later saved into a double-dimensional array (ex. X and Y coordinates). When the player entered a new area, it would load up the file and then, by using the player's current X/Y values, check to see which text values were around him and load up the appropriate picture. (So say a text value of "T", would be a tree, it'd load up a picture of a tree).
I know this may not help you, but maybe it will. Good luck!
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
If you're going to store one piece of information in each cell, use a numerical array, just use a number for each possible tile and remember what it means.
That'll only work for simple tile-based level editors, though, where the grid position is relative to the position the value is stored in the array. For more complex editors, you often need to store more than one piece of information per tile, so in that case you'd use a text-based array containing several items separated by a certain character, then use the string parser extension to retrieve each bit of data.
Edited by the Author.
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
1st June, 2007 at 07:44:40 -
Text based arrays are likely smaller than arrays made by the Array object, but it's also readable and editable in say notepad. Though that can be a good thing, people are able to edit levels with a text editor then!
Byte arrays are smallest (though you could zip it to make it even smaller ), but I don't know if MMF has an object to read/write bytes in a file. Probably does.