How to check for collision objects that collides with a specific area/point

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rustyStriker
:warning: Old Version Published before Godot 3 was released.

In my game I want abilities to interact with the ground and with each other, therefore i need to check if an ability was placed in a certain point in order to know if they need to make an interaction or not…

the game is a 2D game

my question is, as the title says, how can i get a list of the collision objects inside a specific region/point?

:bust_in_silhouette: Reply From: kidscancode

You can use Area2D and get_overlapping_bodies() or get_overlapping_areas(). This will let you check each effect and see if it’s overlapping another one.

Well, I’m currently using area2D but i found out that if i will try and check for collisions on the _ready() function it doesn’t register the collisions yet

rustyStriker | 2017-10-10 21:22