How to create a second autotile sprite?

At the end of the video, Yann says, “If you’re doing several types of autotile in one tilemap, remember each one is going to have to have its own separate sprite.” Does this mean that the single “Walls” TileMap can have a second sprite that uses a different section of the AutoTileWalls tileset? Or do you have to add a second TileMap to the scene?

It seems like you should be able to have multiple sprites within the same TileMap – otherwise we wouldn’t have to select the sprite before drawing walls – but I can’t figure out how to create a second sprite.

Aha! I watched the video again and figured it out. You have to go all the way back to the Walls.tscn scene and duplicate the Sprite. Then you have to convert Walls.tscn to a Tileset again, overwriting the original AutoTileWalls.tres. After that, the TileMap node in Level1 should be aware of the second sprite. You still have to check the Is Autotile checkbox in the second sprite’s properties, and then finally you can chose an Icon and set the Bitmap and Collision properties for the second sprite.

2 Likes

Privacy & Terms