How do I allow the player and collide with object and press a certain button allow interaction?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gamer53
:bust_in_silhouette: Reply From: exuin

You make a StaticBody(2D) and an Area(2D) for the object. StaticBody allows for collision and Area allows for detection.