How can i get nearby tiles in a tilemap from an Area2D?

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

So basically i want to detect the tiles in a pretty big area from the player, so i can move the player apart from that point; the thing is that i thought that i could do this easily with an Area2D and getting the position of the overlapping tiles or something like that but i dont know how to do it, is there a way?

I think this tutorial shows how to do this

figroot | 2021-11-04 18:17