Hot answers tagged

2

The recommended way would be to override Node._unhandled_input() and use TileMap.world_to_map() and TileMap.map_to_world() methods. Example: # tile_map.gd extends TileMap func _unhandled_input(event): if event is InputEventMouseButton: if event.button_index == BUTTON_LEFT and event.pressed: var clicked_cell = world_to_map(event....


Only top voted, non community-wiki answers of a minimum length are eligible