0 votes

I want to create an inspection system for my game, for example:
You walk up to a desk and press an input and a text box pops up, something simple like that. However, I have been trying all day to make it so my Area2D (seperate from my kinematicbody2D used for physics) can detect the exact scene/node it is colliding with. I have tried filtering names, and groups, I have followed almost every tutorial I can find, and scanned the docs for some sort of answer, yet frustratingly, absolutely nothing I try is working. So all I'm asking is how I can get it so that, if my area 2D is colliding with my door (Area2D), it will do something that won't happen when it's colliding with my a different Area2D and vice versa.

in Engine by (40 points)

Names and groups and even layers should work for this. Is there any code that you have for this?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.