Shortcut keys for selecting tiles when laying out tilemap?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HeroicNate

I am looking at creating a rather robust tilemap that goes beyond edge and corners, and clicking back and forth is incredibly time consuming. Any help is appreciated!

Is there a way to have shortcut keys select which tile/next tile/previous tile I lay down as I click?

-and/or-

Is there a way to set a sequence of tiles? So if I click and drag it will place id 1-8 in sequence?

Thanks!

:bust_in_silhouette: Reply From: Becbunzen

Check out autotile: https://www.davidepesce.com/2019/10/18/godot-tutorial-7-using-tile-maps-to-create-game-map/

While this is a great tutorial it does not answer my question. I understand that autotile can auto place edges and corners and fills, but it doesn’t let me set a sequence of tiles. For example, if I want to make slopes spanning over 4 tiles I have to place one tile at a time to get the order I want.

HeroicNate | 2020-06-04 16:45

My guess is that for that type of custom functionality you will need to make a plugin: https://docs.godotengine.org/en/stable/tutorials/plugins/gdnative/gdnative-c-example.html

Becbunzen | 2020-06-04 18:09

:bust_in_silhouette: Reply From: ccpixel

I know this is old, but the easiest way I can think of is to use multiple tilemaps with different tile sizes. For example, create two tilemap sibling nodes. If your tiles are 32x32, one tilemap will have all your tiles at that size, the other tilemap will have a tile size of (328)x(328). In this larger tileset you can make one tile that consists of your eight tiles in a sequence (keep the rest transparent). You can also do this for other patterns.

With these two tilemaps overlayed, it will give the illusion that all the tiles are a uniform size from the same set.