CollisionShape2D not detecting Collisions

Godot Version

4.4.1

Question

I know this has probably been asked dozens of times, but despite the fact I’ve set up my collision layers correctly, have a CharacterBody2D for my player, etc., I still can’t even get collisions detected. I’m not sure what I’m doing wrong here. I’ve only been using Godot for a month or so now, so this is all pretty new to me.

I have my player’s collisions working with my TileMapLayers, but when I try to detect a collision with a CollisionShape2D I’m struggling.

This is my CollisionShape & Area2D

And my Player:

My Area2D Has 1 function, _on_body_entered and it’s connected to its body_entered signal. At the moment I’m just using a print statement to see if it’s working and, alas, no printing done.

Any replies are appreciated!

You have to set the mask-layer of the area to the layer you want to detect (in your case 4 i guess).
The layer-layer only tells other objects that it can be detected on this layer