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!")
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?
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