I need help to create a tile creation and selection system for my level editor

Godot Version

Godot Engine 4.4.1

Question

Hi everyone, I hope you are good, I have a question with respect to TileMapLayer node, I checked the Godot 4.4.1 documentation, because I was looking the method get_source_ids(), before that method was available in Godot, but now it’s not. I’m creating a level editor and I would like to know which method I can use to get the images of the tiles to create buttons with their images, or if there are no methods for do that, how could I create a method that does that? Thank you very much for reading this topic :smiley:

It seems like that information has moved into TileSet, which you can get from the TileMapLayer.

That’s right, I was looking for a way to get the tile images and one of those ways is to get the TileSet from the TileMapLayer, get the TileSetAtlasSource and get the tile ids and then get the images from the tile position in the TileSet and extract the image formed in its area.

You might find it easier to generate the tileset and the buttons in parallel.