Godot Version
v4.4.1.stable
Question
I’m trying to automatically create tiles from a texture, but I cannot find how to achieve this in code.
I only see this functionality available in the editor:
It might help to know why you are trying to do this. What are you trying to achieve?
I want to create tiles from an image loaded by the user.
I get an image from them through a FileDialog, then load the image into the TileAtlasSource. Then the user can set their preferred tile size.
I have some ideas how I can create the tiles manually, but it would be much easier to use the built-in function if it is exposed in some way.
Did you check out all the functions in the TileSet, TileSetSource and TileSetAtlasSource classes?
mrcdk
5
There’s nothing fancy. The editor just checks if the pixel is opaque or not for each tile:
1 Like
system
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.