system
March 18, 2020, 10:45am
1
Attention
Topic was automatically imported from the old Question2Answer platform.
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
it possible to add popup to my tile? if possible how should i do?
func _process(delta: float) -> void:
??????????????:
popup()
system
March 18, 2020, 2:49pm
2
Reply From:
Merlin1846
Do this.
func _ready():
$TileMap.get_cell(positionX,positionY)
#OR
$TileMap.get_cellv(vector2positionSuchasYourCharactersLocation)
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.