How to check if Area2D is overlaping with TileMap

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

Hello,
So i would like to check before moving a player if child Area2D is colliding with a certain TileMap. The game is turn based so there is no need to check for collision in every frame, every method I found requires move_and_slide which I do not use. Player is moved via “self.position”.

Basically I want to check if there is a TileMap tile in the way of player movement with Area2D

Have you checked the [Node]>[Signals] Tab?

There should be a signal body_entered for area2d that you can use to check if something is overlapping with your area2d.

bloodsign | 2021-02-19 06:47

oh thank you it works

Boreas | 2021-02-19 15:05