Save Tilemap grid to txt file?

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

Is there an easy function to save the cell tile indexes to an array? I would love to make a txt file of a map.
Would I just loop through the get_cell() function?

:bust_in_silhouette: Reply From: kidscancode

You would need to loop through the cells. The best way would probably be to use get_used_cells() or get_used_rect().