Godot Version
v4.2.1.stable.official [b09f793f5]
Question
This chest scene is looking for the player. When the player stands, without moving, in the area of the chest, the signals body_entered and body_exited constantly fire. It enters and exits over and over. The only body is the player.
func _on_area_2d_body_entered(body):
print("Entered ", body)
func _on_area_2d_body_exited(body):
print("Exited ", body)
Any ideas on where I go from here?
*** edit ***
I found the reason why this was happening. I had my player’s area set to toggle on and off.
If you want to know why, when the player entered an item’s area with a full inventory, they wouldn’t pick up the item. If you make room in the inventory the item still wouldn’t be picked up because the entered signal already fired. This was my terrible solution. I’ll need to come up with a different one.
Thanks everyone that tried to help! And I’m sorry for my delayed response, life got in the way.