Visual bug in 2D Platform Project

Hi all,

When i place objects in a world and i place another1 slightly behind or in front of the “for example” the floor, and my character walks along the way, the object might switch from in front of the object to the back.

How can i fix this ?

I put in 2 pictures to show the problem

Greets, Mathieu

Is fixxed and can be closed.