Studio Yotsuba
Back to Node List

Rule Tile Pack

rule_tile_pack

Builds a RuleTileSet and sheet image from tile images.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule TileSet
tile_set
RuleTileSet
Optional RuleTileSet input. When connected, this node arranges that set.
Tiles
tiles
List<Image>
Tile images used when no RuleTileSet is connected.
Animation Frames
animation_frames
List<Image>
Frame images appended as one animated tile.

Output Ports

NameTypeDescription
Rule TileSet
tile_set
RuleTileSet
RuleTileSet that can be used by rule tile nodes.
Rule TileAtlas
atlas
RuleTileAtlas
Tiles arranged into one sheet with placement information.
SpriteSheet
spritesheet
SpriteSheet
Same sheet exposed for sprite sheet nodes; animated tiles use their first frame.
Image
image
Image
Sheet image that shows all tiles; animated tiles use their first frame.
Tile Count
tile_count
Int
Number of tiles in the set.
Columns
columns
Int
Number of columns in the sheet image.
Rows
rows
Int
Number of rows in the sheet image.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
TileSet Name
tileset_name
Text
Rule Tiles—

Name used when creating a RuleTileSet from the image list.

Cell Width
cell_width
Int
00–2048

0 infers the tile width from the first tile image.

Cell Height
cell_height
Int
00–2048

0 infers the tile height from the first tile image.

Grid Kind
grid_kind
Enum
Orthogonal—

Map grid style saved in the output RuleTileSet.

  • orthogonalOrthogonal
  • isometric_diamondIsometricDiamond
Render Order
render_order
Enum
RightDown—

Tile drawing order saved in the output grid.

  • right_downRightDown
  • right_upRightUp
  • left_downLeftDown
  • left_upLeftUp
Columns
columns
Int
00–4096

0 chooses an automatic sheet layout.

Frame Duration (ms)
animation_frame_ms
Int
1201–5000

Frame duration of the appended animated tile.

Animation Phase
animation_phase
Enum
Global—

Phase mode of the appended animated tile.

  • globalGlobal
    All cells animate in sync.
  • cell_seededCellSeeded
    Each cell gets a deterministic phase offset.
Fill Order
fill_order
Enum
RowMajor—

Order used when placing tiles in the sheet.

  • row_majorRowMajor
  • column_majorColumnMajor

Overview

Creates a RuleTileSet and a single-image atlas from a list of tile images. It packages tiles drawn or processed in the graph into a form usable by rule-tile nodes and Tiled export.

Usage tips

  • The entry point for custom-image rule tiles is tile images bundled with list_create → rule_tile_pack → rule_canvas.tile_set.
  • For the regular Wang16 or Blob47 image counts used by autotiles, autotile_from_parts / autotile_from_template are better upstream tools. This node packages any number of images.
  • Use the atlas output together with tiled_tileset_export.
  • Animated tiles use their first frame as the representative image in the atlas and sprite sheet. Use rule_animation_render when you need every frame.

Related nodes

  • rule_canvas / rule_render — consume tile_set
  • tiled_tileset_export — exports the atlas
  • autotile_from_parts / autotile_from_template — generate autotile images
  • rule_tile_merge — combines tile sets

What this node does

From a tile-image list or existing rule tile set, creates the RuleTileSet used by rule-tile nodes plus a RuleTileAtlas, sprite sheet, and image containing every tile. It replaces the legacy Tile Atlas Pack.

Key settings

ID Name Description
tileset_name Tile-set name Name used when building from an image list.
cell_width / cell_height Cell width/height At 0, inferred from the first tile image.
grid_kind Grid kind Orthogonal / isometric diamond.
render_order Render order Direction used when layering tiles.
columns Columns Number of sheet columns; 0 is automatic.
fill_order Fill order Whether tiles advance rightward or downward.

Example wiring

RuleTilePack.tile_set -> RuleCanvas.tile_set
RuleTilePack.tile_set -> TiledTilesetExport.tile_set
RuleTilePack.atlas    -> TiledTilesetExport.atlas
Back to Node List