how can i make a object only collide with a single layer

I’m trying to make a roguelike top down game kind of like Binding Of Isaac and I have the shooting done but if the player moves towards the shot bullet than the bullets hit the player so how can I get the bullets not to collide with the player

Hello.

Use the collision matrix to declare which layers can collide with wich layers

Bye!