On Area Entered not printing?

Godot Version

4.6

Question

Hiiiii! I feel as though this is kind of silly, but ive been at it for about half an hour and can’t seem to figure it out. I’ve been trying to get an area attached to one object (blue arrow) to detect an area attached to a ring, and I put a print function to test if it was working, and it isn’t. (I’m wondering if on_area_entered only works if the area doesn’t enter the other before the scene starts, and that’s my problem?)
Anyways, I know both of my objects are on the same collision layer and mask, I triple checked. So, what could be wrong?

extends StaticBody2D #my arrow

func _on_blue_arrow_area_entered(area: Area2D) -> void:
    print("Ring entered!!")
	if Input.is_action_just_pressed("left_arrow"):
		if area.is_in_group("Rings"):
			print("part of group RINGS!")

Thank you<3

Can you show us more?
How are signals connected?
Node structure of your arrow scene and the ring scene?

It shouldn’t matter when the other scene starts.

3 Likes

Sometimes just disconnecting and reconnecting the signal can either fix it or reveal that it actually wasn’t connected properly.

1 Like

Are you trying to detect another area or a body? if want to detect a body you have a error and must be “_on…_body_entered”. PSDT: i dont speak english sorry

Theyre (and im probably gonna sound really silly here not knowing the terms) but an aunt/niece relationship to each other? THe blue arrow is a child to a sibling node of the ring, it that what your asking?

(technically the areas would be cousins)

I tried to detect a body first and it didnt work, so i made the ring have an area 2d as a child to be able to be detected by the arrow’s own area on entry

Thanks :smiley: just did that, sadly didnt work

Can we have a screenshot of the scene tree and the ‘Signals’ panel.

1 Like

Figured it out (im very mad at myself lol)

Apparently I only set the parents collision layer, not the area itself :,D it works now

Thank you for helping me though!!!

2 Likes