Graphical issue in 2D mode.

I have next problem in my project:

When some object moving in the Y coordinates it also moving in the Z coordinates. This used for changing object layer (object can be in front of another object or behind). So the problem is that when object moving scene is lagging (object moves jerkily but fps is fine). If I disable the Z axis problem is gone but I need the Z axis. How to fix this?

P.S.: sorry for my English -___-

You shouldn’t use the Z-layer to move characters or renderables in front of eachother in a 2D game with the purpose you described. You should use the sorting layers on the sprite renderers to fix that issue. Moreover, if you think it is “barely possible” to move it then read up some more on the documentation regarding these topics!