how to get tile id?

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

how to get this id? for exmple if i want id=0
this method? get_tiles_ids ( )
how to use it? i try but get error
enter image description here

it possible to add popup to my tile? if possible how should i do?

func _process(delta: float) -> void:
:bust_in_silhouette: Reply From: Merlin1846

Do this.

func _ready():

this setup assumes that the tilemap is a child node of the node this script is in.
And get_tiles_id() only returns an array with the position of each tile with that id.