Get tile specif texture, not the whole tilemap texture.
Hello guys, I'm trying to create a mini level editor using the built in godot tilemap system.
I'm planning to set the tiles directly in the grid using the mouse position and the set_tile
function. That's pretty simple, the problem is that I want the user to be able to see which tiles they are placing.
So I just want to place the "selected tile" in the cursor position and use the arrows keys to change the tile selected for example.
I've tried tile_set.tile_get_texture(0)
to get the texture from the tile id numero 0, but unfortunately this function returns me the whole timemap texture. So, how can I get just the tile part of the texture?
Am I doing something wrong? Is this the supposed behaviour? If so, why tile_get_texture
needs a parameter?
I'm using normal a tileset with single tiles.
Edit: Sorry my English, also rip the title XD