Download

Help - 2D paper side scroller - layers

Hi
I’m giving Unreal a first try as i want to build some 2d Assets for Marketplace. I want to make a demo level and have currently started out on the pre-made 2d side-scroller.

However I’m struggling with the layers and in which order they are drawn on the screen.

Here is a example, first screen is from the editor:

https://dl.dropboxusercontent.com/u/36531423/editor.png

And here is the a screen from the project running:

https://dl.dropboxusercontent.com/u/36531423/running.png

As you see the plant in the background is in front of one platfrom while running, but not in editor. For the record, the Y-position for both platform are 0, while the background is -400.

Anyone who can explain to me what I’m doing wrong?

Fixed
Manage to find the answer myself, in case someone else finds the thread.
The solution is
“You can go into the details panel of your sprites and under Rendering >> advanced roll out >> Translucent Sort Order. This value is 0 by default setting it to a higher number will make the high number render on top of the lower numbers. So your far background may be 0 while you near background may be 1 and the foreground 2 and the player’s sprite 3.”

Source: Z-Buffer problems with paper2D sprites using Translucent material - UE4 AnswerHub