2D Toolkit Forum
2D Toolkit => Support => Topic started by: DJVDJV on November 09, 2016, 01:17:39 pm
-
Hellos.
I want effect as in example picture.
Just wonder how I should take and change object Z to get id depending tiled map Z?
-
You'll need to add the Z delta in code (took out this option a long time ago). tk2dTileMapBUilderUtil.cs, GetTilePosition - needs a Z that relates to X and Y. In your case you want it going further away the higher it gets.
Switch to an alpha tested material that writes to Z.
You'll now find you can move your player sprite in Z to sort with individual tiles.