Rectangles

Rectangles define rectangular areas in your Document. They are useful for floors, walls, platforms, collision zones, background blocks, trigger areas, and any other box-shaped piece of layout.

Rectangles can be plain layout data, or they can use a Tile to control their visual appearance.

Rectangle fields

Field Value
X number
Y number
Width number
Height number
Tile Tile

Placing Rectangles

  1. Select the Rectangle tool. Keyboard shortcut: R
  2. Click and drag in the document workspace to draw the box
  3. Move, resize, rename, or assign a Tile as needed
  4. Reorder the Rectangle in the sidebar if draw order or export order matters

Stamps

Stamps let you place a specific crop of a Tile Set image freely inside a Rectangle, instead of having it repeat across the whole shape. They're handy for one-off details — a sign, a crack in a wall, a patch of moss — that shouldn't tile the way the Rectangle's main art does.

To add one, select a Rectangle and click Stamp Rectangle, or switch to the Stamp tool. Keyboard shortcut: T. Then pick a crop from your Tile Set and click inside the Rectangle to place it. Stamps can be moved and resized independently of the Rectangle that holds them, and a Rectangle can hold as many as you like.

This is a different thing from a Tile's Stamp Pattern Type, described below — that one repeats a Tile edge-to-edge across a Rectangle, while a Stamp entity is a single placed image.

Tips

  • With an existing Rectangle selected, press Ctrl/Cmd + D to duplicate it in place, then drag the copy to a new location.
  • Use Ctrl/Cmd + C and Ctrl/Cmd + V to copy and paste Rectangles.
  • Put Rectangles inside Rooms when they belong to a specific section of the level.

Rectangles, and any Stamps placed inside them, appear in Code Export and preview data. Your game code can decide whether each Rectangle should render art, create collision, mark a gameplay zone, or serve another purpose.