Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - prokopst

Pages: [1]
1
I found quite easily how to remove partitioning limitation in tk2dTileMapEditor.cs:620
Code: (tk2dTileMapEditor.cs:620) [Select]
partitionSizeY = Mathf.Clamp(EditorGUILayout.IntField("PartitionSizeY", partitionSizeY), 4, 32);
and as expected the problem is gone with PartitionSizeY=1.

2
As unikronsoftware suggested in "Tilemap draw order by y-axis" I "created" my own shader (it is basically "copy & paste and adapt" job with default shader to use alpha testing). Now I have different issue, images are not blended correctly. Ground part (z=0 + y offset) is blended into box with goods (z=-1 + y offset[1]) and then this one is blended with character (z=-1 + y offset[2]). I expect this is feature of pivot and shader thingy sorting in unity.

GIF for better illustration, notice character's legs during movement in north west (top left) direction:

(link to the image)

I'll try to limit partition size to 1 as described in the topic mentioned above (BTW actually the lowest possible value is 4 even if I specify 1, so I need to remove this limitation), but I guess it will hurt performance...

Does anyone have any idea to solve this issue without partitioning by y coordinate (i.e. by rows)?

[1] z offset is set to 1 for this layer in Tilemap settings, so I assume it's z=-1
[2] z coordinate is changing for character with some script component:
Code: [Select]
z = 0.01 * y - 1;

3
Support / Re: Tilemap draw order by y-axis
« on: October 03, 2014, 09:04:40 pm »
Sorry for reviving quite old thread, but what does "Can you use the alpha test shader on the tilemap?" exactly mean? It might be a stupid question, but I know only shader basics and I did not find anything called "AlphaTestShader"...

I hit exactly the same issue with zelda-like game.

4
Support / Re: Set anchor for all sprites in one collection
« on: September 27, 2014, 05:03:25 am »
Ah, I completely missed the "Apply" button. Thank you.

5
Support / Set anchor for all sprites in one collection
« on: September 26, 2014, 07:17:29 pm »
Does 2d toolkit have bulk change functionality to specify anchor for more than one sprite? I tried to select all sprites with shift and set anchor, but only one of them was modified. :(
I have many sprite sheets with characters running, swinging swords, etc. Anchors for these sprites are located at same relative position, x:16, y:64.

Pages: [1]