Hi,

I'm quite new to Godot. Can anyone tell me if it's possible to set custom data layer values for tiles in GDScript? I'm using Godot 4.3 and TileMapLayers, I see there is function e.g. water_layer.get_cell_tile_data(current_point) and then I can get value with tile_data.get_custom_data('water_depth'), but I don't see any simple way to set tile data for tile at specified coordinates. I need it because I generate my map procedurally. Or maybe it doesn't make sense to do that this way and I should just instantiate custom variable, array with values, in the code?

  • xyz replied to this.

    xyz Yeah, I saw this function - so I suppose to implement it in TileMapLayer's script? What if custom data layer value depends on other values generated in other script? 🤔

    • xyz replied to this.

      pawlox Then this script should acquire those values from other scripts. Scripts can exchange data and communicate.

        xyz Thanks, I will try to read more on this topic.