How to get tile information while colliding

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

Hi, I design layout for game be like:

game layout

In this scene, there’s 2 tile which used to active door A & B, code which I wrote:

func _on_Player_body_entered(body):	
var pos = body.position
print(pos)

Unfortunately, result which I received is (0, 0) for both tiles which player touched, if I can’t retrieve tile position/id, I can’t set rule to open door A or B …

Thanks for reading!