Enemy does not colide with tile set but it does with player

Being on the same layer is different from masking the other’s layer.

I notice your physics process is directly moving the enemy’s position, rather than calling using velocity move_and_slide or move_and_collide, so it does nothing to react to collisions.


Make sure to paste code, not screenshots