|Attention||Topic was automatically imported from the old Question2Answer platform.|
|Asked By||Andre Scutieri|
|Old Version||Published before Godot 3 was released.|
Hello, I’ve already made some projects using Godot, but only using “normal” tiles (square ones with 16x16 and so on). But this new project of mine wants to use the PlanetCute tileset, a “stackable” one with 151x171 tiles. Every tile has a “front” face and a “top” face. For it to be stackable, I need to paint one on top of the other, so the bottom one only shows its “front”, and the topmost block shows both its “front” and its “top”. You can see how here:
In the rightmost column, starting from the bottom up, you see a “dirt” block (front only), on top of it another “dirt” block (front + top), and behind it another “dirt” (top only).
I imported the tiles into my tileset and changed its offset so the + cursor would be centered on the “front” face, like this:
But when I try to stack it on my tilemap, the layers overdraw each other:
I tried changing the Z index, drawing from the topmost down, from the bottommost up, no avail. I think there is something wrong with the way I’m configuring the tiles in my tileset, before importing it to my tilemap, but I have no idea about it. How can I use this tileset in my project?
The whole tileset can be obtained here: direct link to the zip!