Hi, fellow developers!

I've been exploring godot recently.
Tilemap has enough feature to make a legit map.
But it seems that quite difficult to find out how actually big the map is.
I want to make a infinite (repeating) tilemap. It would be easier with some sort of fixed size tilemap.
How can I set that? or at least can I know the size?

  • xyz replied to this.

    colus001 It has no size (limit), because it stores only the used cells. It doesn't care where those cells are. To get a current bounding box, i.e. the minimal rect that encloses all used cells, you can call TileMap::get_used_rect()

    Godot stores how many pixels is each cell. When you paint a cell, godot will insert this text into your scene. This text includes a "cell" position

    Click to reveal Click to hide

    This text includes the TilemapNode

    [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_67xu1"]
    texture = ExtResource("2_pjk1a")
    texture_region_size = Vector2i(18, 18)
    0:0/0 = 0
    0:0/0/physics_layer_0/linear_velocity = Vector2(0, 0)
    0:0/0/physics_layer_0/angular_velocity = 0.0
    0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-7, -7, 7, -7, 7, 7, -7, 7)