Top down Auto tiling and random object generation

Hi all,

I am just looking for some advice on how I the best way to add vegetation and autotile the mountains (dark green / orange block) and the water (grey) (these are just place holders.

I am wanting to make small Randomly generated worlds which I have got working it’s just the auto tiling for the 2d top down perspective and adding vegetation and objects randomly to the map I am unsure about.

This might not be the most optimized solution, but you can try making each tile check to see if it has neighbors of the same type and change its animation based on that

AutoTile extension

Inside you have images showing how you need to cut spritesheet for each tile
And yeah you need 48 images for SINGLE TILE
I do not remember which auto tile was newer
You can use sprite sheet slicer Sprite Sheet Slicer by isometric8
To cut sprite sheet
ALL images need to go into ONE SINGLE animation as individual frames
not individual animations
ONE animation

And i did not make it it was user PlanktonFun

In behavior when adding it to your object you can set group
If 2 tiles have same groups they will connect
For example you have blue grass and gren grass and set their group number to same number they will connect

And be ready for FPS lag if you gonna build huge world
Auto Tilling is demanding

Awesome thank you so much, I added it in but they don’t seem to be tiling properly.

This is my events and the scene.


The fact i see red tiles there tells me either you sliced it wrong or you added wrong amount

You can clearly see pattern here


You see red tiles
Only if from red tile there are tiles in all possible directions except in lower left corner
That is when you see red tile
I say you are one frame short cause numbers ar shifted

47th frame should be inner corner for lower left
So tile i described and instead its 48th one (it starts from 0 so its always -1 like 2nd image is with index 1 not 2 cause 0 1 2 so one with 2 is actually third and now 46 is actually 47th image)

Anyway i think you simply did not added one frame there
Or go to animation and try to add very 1st frame again and you should be fine

Maybe even duplicate 1st frame just to check am i right

I think order is messed anyway
Look all these tiles

Should be 7 but instead are 13

Same here
All these should be 14 but are 20

So 13 - 7 = 6
20 - 14 = 6

I kinda see pattern here

But then these should be 18 but are 15
So error pattern is actually not a pattern at all