The Daily Click ::. Forums ::. Klik Coding Help ::. Level editor
 

Post Reply  Post Oekaki 
 

Posted By Message

alexandre szybiak



Registered
  25/05/2006
Points
  149
31st May, 2007 at 04:27:18 -

Hi everyone.

Here we can discuss about level editors.

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 )

Your help is very appreciated !

 
n/a

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
31st May, 2007 at 06:41:34 -

I had one, called Super Duper Person, that was slow, but worked. Not sure where it is though. Anyone else have it?

 
n/a

EonDev



Registered
  13/01/2007
Points
  219
31st May, 2007 at 06:42:52 -

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

 
Breathing? It's optional!

alexandre szybiak



Registered
  25/05/2006
Points
  149
31st May, 2007 at 06:44:43 -

ha, didn't think of clickteams forum, i've only searched here and on google... i'll go check

 
n/a

waffleton



Registered
  20/04/2007
Points
  794
31st May, 2007 at 13:18:46 -

My editor's gone totally crazy, thanks to all the bugs in the MMF2 demo -__-
Bah~

 
n/a

alexandre szybiak



Registered
  25/05/2006
Points
  149
1st June, 2007 at 06:25:57 -

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 )

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
1st June, 2007 at 07:01:10 -

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!

alexandre szybiak



Registered
  25/05/2006
Points
  149
1st June, 2007 at 07:12:00 -

thx, is it better to use text based array ?

 
n/a

Deleted User
1st June, 2007 at 07:40:28 -

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.

Image Edited by the Author.

 

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
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.

Image Edited by the Author.

 
Old member (~2004-2007).

alexandre szybiak



Registered
  25/05/2006
Points
  149
1st June, 2007 at 14:43:16 -

ok, i'm gonna learn about that string parser thing... thx
if anyone want to talk about the way they build their editor, please go...

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
1st June, 2007 at 17:09:50 -

I use mmf.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st June, 2007 at 20:37:23 -

What for?

 
.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
1st June, 2007 at 22:08:35 -

Cooking burgers. What else?

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
1st June, 2007 at 22:19:50 -

Peblo is a magician, so it could be many a thing.

 
.
   

Post Reply



 



Advertisement

Worth A Click