Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Map editor problems
#1
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:

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?
Reply
#2
have you counted how many tiles wide it is?
and tried using that number - 1
i think that is how it works since the first one is at 0 not 1
Reply
#3
Well 512 / 32 = 16...and I didn't know that it counted from 0, so I'll try 15. Thanks Dr. Spoon Smile

Alright...I've got it set to 15...the first row in the left half side of the first 8 tiles (which is normal width for tile sheets) gets chosen normally, then I pick the first one in the second row and it places down the tile that's in the third row and to the right two. If I pick a tile in the top row and all the way to the right it places down the tile that's in the third row and to the right twice (like if I pick the first tile in the second row).

Here's some testing I've done:

( Layout of the tiles goes from 1 - 16 in the first row, 17 - 32 in the second row, and so on)
1 - 1
2 - 2
3 - 3
4 - 4
5 - 5
6 - 6
7 - 7
8 - 17
9 - 18
10 - 19
11 - 20
...

So it just ignores the right side when you hit the 8th tile (or when you hit the right half) and goes into the second row of the left side...
Reply
#4
did you miss some instances of 7
that concerns the map editor
Reply
#5
Have you changed everything in BltTile and BltFringeTile to the proper number?
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#6
Ok...

So why is everything multiplied by 7 and then divided? I don't see any point to it. So would this work?:

Basically just change all 7's to 15's...

And it works...I didn't think the map was blt'd like that when using the map editor since it's only temporary until you save it, but that makes sense...

Thanks for the help Dr. Spoon and Robin and sorry for my ignorance. Smile
Reply
#7
By using the multiplying and dividing, it lets you use 1 number for the tile number, rather than the x and y coordinates of it.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)