- Home /
2D Layering Issue
Hi there,
I am busy with this current game and have stumbled upon this issue, I know it has something to do with the layers but my problem is that how can I make my objects in front of other objects depending on their position. Some items they should be in front off others they should be behind?
https://www.dropbox.com/s/ngsei9ggf08v0gz/Screenshot%202016-04-22%2011.40.18.png?dl=0
Comment
You have to set the sprite layer seperately for each horizontal tile line, at least for the static sprites. The dynamic ones, like the chefs, can be assigned at runtime with a simple script that assigns the sprite layer according to their transform.position's y value (= in which row they are currently).