Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PerduGames | |
Old Version | Published before Godot 3 was released. |
I have a tilemap in the scene, and I need to get the overall position of a tile.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PerduGames | |
Old Version | Published before Godot 3 was released. |
I have a tilemap in the scene, and I need to get the overall position of a tile.
Reply From: | PerduGames |
I think I got it.
var pos_cell_global=get_node("TileMap").map_to_world(Vector2(x, y))
where Vector2 (x, y) is a position in the grid of some cell.