0 votes

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 http://docs.godotengine.org/en/latest/classes/class_tilemap.html#class-tilemap-get-used-cells

And it returns 1035.

Each of my tile that I am using is 512x256... now I just don't know what to do next :P

in Engine by (308 points)
edited by

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 :D

1 Answer

+2 votes
Best answer

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

by (1,469 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.