Hello Guest

Author Topic: Is 1024x1024 the absolute largest that a tilemap can be?  (Read 4007 times)

negative_zero

  • Newbie
  • *
  • Posts: 10
    • View Profile
Is 1024x1024 the absolute largest that a tilemap can be?
« on: January 11, 2015, 09:47:35 pm »
When I go into a tilemap and go to settings -> dimensions for my vertical stage, my current layout is this:

Width: 128
Height: 1024
PartitionSizeX: 32
PartitionSizeY: 32

I definitely need more space than this vertically.  However, when I go to change the 1024 number, it won't let me go any bigger.  Is there any way around this?  If not, what would you suggest for stages that need more space?  Two tilemaps on top of each other?  (More accurate would be two times 10 or so tilemaps on top of each other, because I actually use about 10 tilemaps in each stage for a variety of layers...)

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is 1024x1024 the absolute largest that a tilemap can be?
« Reply #1 on: January 11, 2015, 11:11:09 pm »
You can adjust the maximum dimensions in tk2dTileMapUtility.cs, if your width is 128, you should be able to go up significantly in height.

negative_zero

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Is 1024x1024 the absolute largest that a tilemap can be?
« Reply #2 on: January 11, 2015, 11:53:52 pm »
I should have been more clear, that is just for my top to bottom stages.  For left to right stages the reverse is true... I don't need as much height but I need additional width.

So in that code...

public static int MaxWidth = 1024;
public static int MaxHeight = 1024;

Is it possible to make both of these numbers bigger in the code?  I'd never have both bigger than 1024 at the same time, just either one dependent on whether it is a top to bottom or left to right stage.  I don't know exactly how much bigger that I need yet, but I'd say around 1.5 times at least each way (1536ish for each?)

So my requirements would be something like...

Top to Bottom stages:
256 x 1536

Left to Right stages:
1536 x 256

I'm not totally sure on any of these numbers yet either, just estimates.  Is there a hard limit?
« Last Edit: January 11, 2015, 11:55:55 pm by negative_zero »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is 1024x1024 the absolute largest that a tilemap can be?
« Reply #3 on: January 13, 2015, 02:19:12 pm »
No hard limit, if it goes too big you'll probably run out of memory / crash. You can increase it to whatever you like really, 1k x 1k = 1M tiles, so if you keep it balanced (eg. 2k x 0.5k) then you wont change the max footprint.