Interacting component works on one character, but not another.

Godot Version

4.5

Question

I am using the code from this tutorial, to allow my players to interact with characters and objects. I have two “playable characters” (it’s the same character, just one is floating motion mode and the other is grounded). On the character with grounded motion mode, I get this error, and it crashes as soon as the level loads.

E 0:00:01:105 _process: Invalid access to property or key ‘is_interactable’ on a base object of type ‘Area2D’.

I don’t know what the difference between them is that could be causing this issue to only appear for the one player character. Here are some additional images in case they are needed.

The player that is having the issue:

The one that is not having the issue:

You have an Area2D in your current_interactions array that doesn’t have the is_interactable variable on it. I would guess the Area2D that is parented to your player character ends up in your current_interactions array somehow.