Dodge The Creeps : The Player doesn't disappear after colliding with enemy mobs

godot 4.4.1

i was following the godot tutorial for dodge the creeps and everything is working fine except the Mobs and the Player dont seem to collide. According to the tutorial the player should disappear after colliding with mobs at this stage.

my player is on collision layer 2 and mask 1
my mobs are on collision layer 1 and mask 2

is this correct? or something else is the problem??
I have copied the code completely from the tutorial but it still doesn’t work

Can you maybe link the tutorial?

this is the tutorial

and this is the finished project on github

I’m a complete noob but I thought that things that need to collide with each other have to be on the same layer? If you haven’t already, could just try to set player to layer 1 as well and see if that works.

for things to collide you need to set the MASK to a value of the LAYER of the object you want to collide with

Are you sure you connected the “body_entered” signal to the _on_body_entered-method?