Godot Version
4.3
Question
So I have over 607 (50 x 50) tile images. When the game starts, I would like to programatically draw the map based on what the map data is. Both because the users will be loading custom maps, and because there is so many tiles it’d be impractical to load them manually in TileMap and assign unique id to each.
The map data might be like this “0A0123 0A0124 …” separated by spacebar, where in each tile “0A0” for example would be the name of the tile (0A0.png), 1 would be rotation type, 2 would be flip type and 3 or 4 would be the collision type.
I would have to rotate the tiles, flip them, and apply a collision shape (with the rotations and flips applied to the collision shape aswell).
How can I do this? I searched everywhere but all I see is tutorials about using the TileMap, TileSet and drawing the maps manually etc.
I have all tiles in one folder “Map_Tiles” and all of them are named after the first 3 letters in map data like I said, so “0A0123” would get “0A0.png” or “0Z8452” would get “0Z8.png” etc.