How to create structures efficiently

Is there an easier way to auto-place structures made of blocks without painstakingly using
[set (tile) at (column (0) row (0) )]
for every block?

For example, how could I overlay a tilemap (tilemap of temple) on top of another tilemap (the chunk)

The game I want help on is below (The terrain is randomly generated)

2 Likes

I bet you could make something to do this. You make mini tilemaps and then when you want to “apply” them to the world you have a simple loop like

For Y from 0 to (mini tilemap height) {
    For X from 0 to (mini tilemap width) {
         If (mini tilemap get tile at (location X Y) =/= (empty tile)) {
             (World Tilemap) set block at (location world location + X, world location + Y) to (mini Tilemap get tile at (X, Y))
}}}
3 Likes

You could do something like this:

2 Likes

@Rune 's help on my topic

2 Likes

This as a custom extension would be pretty cool. I’m sure what you could do is run a loop to put all the tiles into an array and then loop it back into the tilemap you want to draw on, like @BitBot and @WoofWoof said.

1 Like

Richard’s [Extension] arcade-tile-scanner extension might be helpful

2 Likes

Hm…

I’ll try that.

Thanks a lot for the help!!

1 Like