I am learning Direct draw, and i would like to make a map editor for an Rpg. Can anyone help me here? I dont know where to start...A few things the editor would need
For my first editor, these few simple things would work
-load a bmp (tile set)
-create a new bmp with user defined width and height
-Let the user (mainly me) drag the cursor on the tileset to select a tile in 16/16 intervals (all my tiles are big, but 16/16 intervals)
-Save as new bmp
Can anyone help me with this? Or at least point me somewhere to help me?
If I do it will be on one of the sessions on one my many cd-rw backups.
I'll take the time to look around.
As for now what exactly do you need to understand?
Pick a file format, if it the idea above then great its easy.
Write some code to load up the file.
That is all up to you, what I did was have a big array full of graphics which corresponded to the number on the map. It also help all the player graphics and stuff.
So for making maps, I just loaded that same array into icons in the form. Then created a grid using only lines. It is easy to get mouse coords so you can easily know which tile the user is in.
Have him select a tile, click, place the tile in a 2 dimensional array so you can save what id it was.
When you save, just save the file, oop through the array saving row by row.
I'll PM you if I find it. Its gotta be somewhere, it will more clearly show it.
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
Well i started work on what i said in my first post, and i uplaoded it.
Im going to add a collision generator for it next, using basically the same method, with creating shapes, and the drag method, and then saving all the coordinates into a txt
Hey, I just realised that I asked a question about the tiling you used in my new post, Halsafar. I sent you a Private Message, but I guess you didn't get it. So could you reply in the new post about the method you used? If you have that file on a CD-RW backup, that'd be really helpful
I have made a really simple editor, but it has 2 layers, and 4 different tiles, (two for lower, and 2 for upper layer), and then you can save and load the maps, you can take a look at it =)