Difficulty; 1/5(Not really even any code in this, Barely)
This tutorial... Is probably not going to be the best one. I'm not going to list all of the places where you have to change code, Too many.
First of all, Though, For those of you too lazy to Make a form for your Map Editor;
http://www.megaupload.com/?d=6GZEOE6QThat's set to the height and width of a Pokemon Tileset(I was fooling around with different tilesets, Lol)
Basically, All you have to do is Find and Replace(CTRL+F) And Look through all codes of frmMirage (there are also instances in some of the modules) that have to do with the mapeditor, And Replace the frmMirage.control instances with frmMapEditor.control.
thanks to rian for helping me improve how i said that part ;PThe Only coding you have to actually do is the Command, Which is;
Code:
frmMapEditor.Show
With frmMapEditor
.Width = 6800
.lblTileset = Map.TileSet
.scrlTileSet = Map.TileSet
.scrlPicture.Max = (.picBackSelect.Height \ PIC_Y) - (.picBack.Height \ PIC_Y)
End With
That is going in the ModGameEditor, Under the Map Editor Sub.
Comment out or Delete all of this;
Code:
With frmMirage
.Width = 14175
.picMapEditor.Visible = True
.lblTileset = Map.TileSet
.scrlTileSet = Map.TileSet
.scrlPicture.Max = (.picBackSelect.Height \ PIC_Y) - (.picBack.Height \ PIC_Y)
End With
I'm probably missing something in this tutorial. It feels way too short To be right. I'll think about it and If I come up with what I did wrong I'll fix it.
NOTES:
Make sure you change the Width in the With frmMapEditor Code so it fits to your mapeditor.
I had a problem with Animation when I did this. I couldn't edit the maps, So I had to completely delete them so the animation problem would fix. I don't know how I caused it, Or How to fix it. Help me?
My Mapeditor works perfectly, Nothing is wrong. I just hope I did the tutorial right.
How to Edit MapEditor Width for a different tileset;
Code:
' Number of tiles in width in tilesets
Public Const TILESHEET_WIDTH As Integer = 7 ' * PIC_X pixels
Change the 7 to however many tiles wide your sheet is.