Detect collision with an instanced tilemap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Creative Geek

Absolute beginner here, I want to detect if the player is colliding with a specific tilemap node in GDScript.

example of what I don't want
so that this won’t happen XD


I’ve seen that this could be achieved using an Area2D node as a parent of Tilemap, but I want to keep things to a minimum in the main scene, so I have a scene with the tile map and I have it instanced in the main scene, and so I could use it to paint the tiles directly in the main scene (I do this because it’s supposed to be a metroidvania demo)

current tree

Is there a way to achieve this? even using the trickiest of the trickiest code?