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.

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 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.