how do I create an alternative tile with a different texture

Godot Version

4.4.1

Question

I"m new to the Godot 4 way of doing things, and the New Tilemap/tileset thing is throwing me.

I want to have a base tile and a few alternative tiles with different probabilities when I pain an area. The catch is that my tiles are in different files, not one large atlas file.

How do I set an Alternative Tile to a different Texture than the base tile?

Randomization is made when drawing the tilemap Using TileMaps — Godot Engine (stable) documentation in English not with the Alternative Tile options in the tileset.

You can give each tile a different probability by selecting the tile and changing it under Miscellaneous -> Probability in the tileset dock.

Well, I guess I have 2 questions then. Why did they go backwards in functionality with this? it was easier to have a random tile pop up ban in version 3?

Also, what is the point of the Alternative Tile? why does it exist? what is it for?

The tilemap and tileset systems were fully re-worked. The current system is more flexible as it let you choose different tiles from different sources and randomize them at once. The old system (Godot 3.x) using atlas regions does not let you choose tiles from different sources for example.

It’s explained in the documentation Using TileSets — Godot Engine (stable) documentation in English

Yes. I’m asking HOW do I do that? the documentation doesn’t say!

As for Alternative tiles. The way I read the documentation, it does what I thought it should or would do. How do you read the documentation?

Select the tiles you want to draw while pressing shift

It explains what an alternative tile is:

Sometimes, you want to use a single tile image (found only once within the atlas), but configured in different ways. For example, you may want to use the same tile image, but rotated, flipped, or modulated with a different color. This can be done using alternative tiles.

It lets you use the same tile image but with different settings like color, rotation, collision shape,…

Ah yes, I see now… that’s way harder than it used to be for sure. Thank you for the video. That video should be added to the docs, with some subtitles.

Love it! Thank you again!