04-03-2008, 12:45 AM
I put in a new tile sheet that's 512 pixels wide...I moved the map editor to a new window and made it wider to hold my new tile sheet. Well when I try to place a tile on the map, it doesn't place the right one. I know it has something to do with:
The * 16...I have tried 7 (original), 14 (on Elysium), 32 (16 times 2), and other random stuff...but none work. Using 16 gets it close to selecting if you select in the left side of the tile sheet (about 4 tiles off), but when you get into the right half it selects off worse.
Any help?
Code:
If frmMapeditor.optGround.Value = True Then .Ground = EditorTileY * 16 + EditorTileX
If frmMapeditor.optMask.Value = True Then .Mask = EditorTileY * 16 + EditorTileX
If frmMapeditor.optAnim.Value = True Then .Anim = EditorTileY * 16 + EditorTileX
If frmMapeditor.optFringe.Value = True Then .Fringe = EditorTileY * 16 + EditorTileX
The * 16...I have tried 7 (original), 14 (on Elysium), 32 (16 times 2), and other random stuff...but none work. Using 16 gets it close to selecting if you select in the left side of the tile sheet (about 4 tiles off), but when you get into the right half it selects off worse.
Any help?