0 votes

I have a cliff autotile tileset and a stairs tileset. The cliff tileset has collisions set so that a player cannot walk off the edge. However, I need to connect different platforms with stairs. With the stairs that go straight up on the screen (It's a top-down 2d rpg style game) it's easy enough, i just extend the cliffs to go where the stairs should be and then just use the stairs tileset to give it the correct texture. However, then there are stair that go diagonally down to the right, I can't find a way to connect those to the cliff tileset. If I just place them next to it, the collision prevents the player from entering the stairs. If I connect both the platforms with the cliff, I cannot completely hide it with the stairs and the cliff tiles can be seen. I cannot put them both into one autotile either, because as far as I know, there is no way to have one autotile have several different types of tiles (not based on what tiles are around it). Is there a way to connect these two together, or will I really have to do this with tile atlases?

Godot version 3.2.3
in Engine by (72 points)

1 Answer

+1 vote
Best answer

When editing your tileset you can see a tileset editor context in the inspector.
This has a property where you can load a custom script which inherits from tileset. There you can overide the internal methodes.

Here is an example.

by (298 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.