Portponky / better-terrain

Terrain plugin for Godot 4
The Unlicense
509 stars 24 forks source link

Problems Mixing Straight/Diagonal tiles with Decorations #74

Closed MaxRabbit closed 7 months ago

MaxRabbit commented 7 months ago

Hi! First off, a big thanks for making this plugin and publishing it for the rest of us to use. It's wonderful!

Now, down to the issue.

image

As you can see above, the tileset I'm using has both decorations and diagonals. I've set them up as separate terrains in the same category so they can mix. The problem is that the decorations for the flat surfaces are appearing on the diagonals too (see center example) and vice versa. I can't find any way to define diagonal decorations or prevent the horizontal decorations from appearing on the diagonal tiles.

Is there any simple solution?

Thanks for your help! -Rob

Portponky commented 7 months ago

It looks like the decorations are matching against the cave tile category. Try making them match against the specific terrain type you want to match against. Perhaps something like this:

image

That way it'll only place the diagonal decoration above a diagonal tile which has another cave tile next to it (could be another diagonal or a flat tile). Of course, it depends exactly how your tiles fit together.

edit, and this: image

MaxRabbit commented 7 months ago

Perfect that did the trick. I'm having so much fun playing with terrain now~

Thanks for your help! -Rob