How to make a image stay on top of other image when they collide

So basically i have a ball who goes inside a bucket. The ball is applied to physics but the bucket is just a image who has a outline build with rectangles. I want to make the bucket image stay on top when the ball collides with the bucket and not the way around.

Change the order you create the images in, use separate groups, or play with layering:

bucket:toFront()

Thank you! I’ts working now.

Change the order you create the images in, use separate groups, or play with layering:

bucket:toFront()

Thank you! I’ts working now.