|Topic was automatically imported from the old Question2Answer platform.
I’m trying to remove a tile when a player on a tilemap presses a key. Since the tilemap represents a platform it is moving within the global space. Yet set-cell and set-cellv are not removing the tile at the collider position. And printing the world-to-map positions over time it appears they are changing, as if the tilemap’s conversion is based on it’s original position.
var cell_pos = collider.world_to_map($Ray2D.get_collision_point())
Am I misunderstanding the tilemap’s world_to_map? Any idea what I’m doing wrong?