2d Background Sprites protruding through foreground sprites

I’m probably going about this the wrong way but here goes…

So I’m just trying some simple 2d side scroller stuff. I’ve created the default 2d side scroller template and I’ve tried to add some simple sprites.
Although I’ve put some sprites behind others, they still appear in front. How do I prevent this from happening.


The hills are clipping through the houses on the left but not on the right, even though they same distances between each are used.

TLDR background sprites are protruding through foreground sprites regardless of how far behind they are

Any help/pointers would be appreciated.

A user on reddit supplied me a fix -

This has fixed the problem for me - but now my character is going behind the sprites, so that’s the next problem for me to try and solve, if you happen to know please let me know.

Thank you!

Thank you for this :smiley: