How to get dimensions of a isometric tilemap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wombatTurkey
:warning: Old Version Published before Godot 3 was released.

Dumb question… But I am trying to get the dimensions of my isometric tilemap. I’m using cell size of 512, 256, and quardrant size of 128.

It’s fairly large too

Edit: I just found TileMap — Godot Engine (latest) documentation in English

And it returns 1035.

Each of my tile that I am using is 512x256… now I just don’t know what to do next :stuck_out_tongue:

wow, 512x256 is large for a tile. quadrant of 128 is even more huge, it means every “chunk” of your map will draw something as big as 65536 x 32768 pixels each frame :smiley:

Zylann | 2016-09-29 13:11

:bust_in_silhouette: Reply From: jospic

get_used_cells ( ) is an array, you have to scroll to find cells actually used and find the minimum and maximum positions to determine the width and height of tilemap.

.j