Studio Yotsuba
Back to Node List

Autotile From Template

autotile_from_template

Builds a full Blob47 autotile set (47 tiles + rules) from a small 5-tile template image or individual role tiles.

Reviewed
Guide available

Input Ports

NameTypeDescription
Template
template
Image
Template image containing the role tiles in the selected layout.
fill
fill
Image
Optional role tile that overrides the template.
isolated
isolated
Image
Optional role tile that overrides the template.
horizontal
horizontal
Image
Optional role tile that overrides the template.
vertical
vertical
Image
Optional role tile that overrides the template.
inner_corner
inner_corner
Image
Optional role tile that overrides the template.

Output Ports

NameTypeDescription
Rule Tile Asset
asset
RuleTileAsset
Tile set and rule set bundled on one wire.
Rule TileSet
tile_set
RuleTileSet
47 blob tiles as a RuleTileSet.
RuleSet
rule_set
RuleSet
Blob47 neighbor rules for the material.
Rule TileAtlas
atlas
RuleTileAtlas
47 tiles packed into one sheet.
Sheet Image
image
Image
Blob47 sheet image (masks in ascending order).
Template Guide
guide
Image
Guide image showing where to draw each role tile.
Tile Count
tile_count
Int
Number of generated tiles (47).
Warnings
warnings
Text
Missing inputs filled with placeholders, etc.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Template Layout
layout
Enum
Strip5—

How role tiles are arranged in the template image.

  • strip5Strip5
    One row: fill, isolated, horizontal pipe, vertical pipe, cross.
  • rpg_maker_a2RpgMakerA2
    2x3 tiles: isolated, inner corners, and a 2x2 filled square.
Material ID
material_id
Text
terrain—

Material id painted on the rule canvas.

TileSet Name
tileset_name
Text
Blob47 Tiles—

Name of the generated RuleTileSet.

Cell Width
cell_width
Int
00–2048

0 infers the size from the template or role tiles.

Cell Height
cell_height
Int
00–2048

0 infers the size from the template or role tiles.

Sheet Columns
columns
Int
80–64

Columns of the packed sheet. 0 chooses automatically.

Overview

A hand-drawn autotile generator that produces all 47 Blob47 tiles after you draw only five tiles. Draw over the guide image, connect the result, and the complete autotile set is ready.

Usage tips

  • The core workflow is to save the guide output and draw over it. You draw only five roles: [fill], [isolated], [horizontal], [vertical], and [cross].
  • RPG Maker A2-compatible layouts are supported, so existing RPG Maker assets can also be reused.
  • If you do not want to draw the tiles, use autotile_from_parts for fully automatic assembly.

Related nodes

  • autotile_from_parts — the fully automatic counterpart
  • rule_canvas — consumes the output
  • rule_tile_merge — combines multiple terrain types
  • tiled_tileset_export — exports the atlas

What this node does

The 47 Blob47 tiles can be built entirely from combinations of five quarter-tile states across four quadrants. This node cuts quarters from a template image containing five role tiles and mechanically assembles all 47 patterns. You do not need to draw and arrange every tile individually.

Basic workflow:

  1. Place the node and save the guide output (the guide image) as a PNG.
  2. Draw your artwork over the guide (only five tiles).
  3. Connect the resulting image to the template input.
  4. Connect tile_set / rule_set to Rule Canvas and paint with the terrain name.

Key settings

ID Name Description
layout Template layout Either 横一列5タイル ([fill][isolated][horizontal][vertical][cross]) or RPGツクールA2互換 (2×3).
material_id Terrain name Name used when painting on the rule canvas, for example grass.
cell_width / cell_height Cell width/height Set to 0 to infer from the template or role tiles.
columns Sheet columns Number of columns in the sheet image (default: 8).

Example wiring

AutotileFromTemplate.tile_set -> RuleCanvas.tile_set
AutotileFromTemplate.rule_set -> RuleCanvas.rule_set
RuleCanvas.resolved           -> TiledMapExport.resolved
AutotileFromTemplate.atlas    -> TiledTilesetExport.atlas

Related

Back to Node List