---
title: "Tile collision and objects: make your map playable"
description: "Add collision to tiles, draw slopes and custom shapes, place spawn points and enemies on object layers, and send it all to Godot or Tiled with your map."
source: https://makepixel.ai/guide/tile-collision-and-objects/
language: en
updated: 2026-11-25
---

# Tile collision and objects: make your map playable

A tile map is only a picture until your game knows what's solid and where things start. **Tile collision** marks which tiles block the player, and **objects** mark everything that isn't a tile: spawn points, enemies, triggers and patrol routes. This guide covers both, and what your engine receives.

## Tile collision or an object?

| Use | When | Examples |
| --- | --- | --- |
| **Tile collision** | Every copy of a tile behaves the same | Walls, floors, ramps, fences |
| **A `collision` object** | One particular spot is solid, whatever tiles are there | An invisible wall, a blocked doorway |
| **Other objects** | You need a location or an area for your game code | Spawn points, trigger zones, patrol paths |
| **Entities** | A sprite stands in the level | Chests, enemies, NPCs |

Set collision on the tile whenever you can. You do it once, and every map using that tile gets it.

## Paint collision on the map

This is the quickest way to set up a whole level.

1. Open your map and tick **Collision** in the options bar along the top. Every blocking shape is drawn over the map, and clicks no longer place tiles.
2. **Click a tile** to make it solid. Click a solid one to clear it.
3. **Drag** across the map to do many at once. The whole drag follows what the first click did.
4. Untick **Collision** to go back to painting.

You're editing **the tile itself**, not this one cell. Click one wall and every copy of that wall is solid, on every map in the project.

Start a drag on an empty tile and it makes everything solid, while any tile that already has a half-block or slope keeps its shape. So you can sweep across a whole wall without flattening your ramps. A click or drag that **starts** on a tile with collision clears instead.

## Set exact shapes

Many tiles aren't full blocks. To give one a precise shape:

1. In the map's palette, right-click the tile and choose **Tile properties**. You jump into the tileset with that tile selected, and closing the panel brings you back to the map.
2. Under **Collision**, choose a shape.

| Shape | Good for |
| --- | --- |
| **None** | Decoration, floors in a top-down game |
| **Full** | Walls and solid ground |
| **Top half**, **Bottom half** | Ledges, low walls, half-height platforms |
| **Left half**, **Right half** | Thin walls, the sides of doorways |
| **Slope, bottom right** / **bottom left** | Ramps going up |
| **Slope, top left** / **top right** | Sloped ceilings |

Each button's small picture shows exactly what you'll get.

To edit several tiles at once, click a tile in the sheet, then drag to box-select or hold Shift to add and remove. Every change applies to all of them in one undo step.

## Draw custom shapes

For a round pillar or an odd-shaped rock, choose **Custom** at the end of the **Collision** row.

- **Rectangle:** drag on the tile to draw a box.
- **Polygon:** click to add points. Click the first point or press Enter to finish.

Points snap to whole pixels. Click a shape to select it, and press Delete to remove it. A tile can hold up to 16 shapes.

Keep collision **simpler than the art**. A character that catches on every bump in a rock feels broken, while a smooth shape that's slightly smaller than the rock feels fair.

## Give tiles more data

Tile properties can carry more than collision, and all of it follows the tile everywhere it's used.

**Animation.** For water, torches and conveyor belts:

1. Select **+** (**Add frames**) next to **Animation**.
2. Click the tiles to play, in order. Each frame is another tile in the same tileset.
3. Select **+** again to finish, and adjust each **Frame duration**.

The tile now plays in the palette, on your maps and in scenes. For Godot, the frames need to be the tiles directly after the first one in the sheet, in order. Others are left out, and the export tells you so. Tiled keeps every animation.

Under **Advanced** you'll find three more fields:

- **Class:** a name your game code can read, like `water`, `ladder` or `spikes`. Auto layer rules can match on it too.
- **Custom properties:** your own values, as **Text**, **Number**, **Integer**, **Bool** or **Colour**, such as `damage = 5`.
- **Probability:** how often this tile is picked by the **Random** brush and terrain brush. The default is 1, and 0 means never.

## Add an object layer

Objects live on their own layer, above or between your tile layers.

1. In **Layers**, open the **⌄** and choose **Object layer**.
2. The toolbar switches to the object tools, and the palette switches to your **Assets**.

| Tool | Key | Use it for |
| --- | --- | --- |
| **Select objects** | V | Moving, resizing and editing |
| **Rectangle** | R | Trigger zones, rooms, invisible walls |
| **Ellipse** | O | Circular areas of effect |
| **Point** | P | Spawn points, waypoints, camera targets |
| **Polygon** | N | Irregular areas |
| **Polyline** | L | Patrol routes, paths, rails |

For **Polygon** and **Polyline**, click to add points, then press Enter or double-click to finish. A polygon can also be closed by clicking its first point, and Esc abandons it.

Objects snap to the grid. **Hold ⌘ or Ctrl to place by the pixel.**

With **Select objects**:

- Click to select, Shift-click to add or remove, or drag a box around several.
- Drag to move, or **Alt-drag to duplicate**.
- Use the 8 handles to resize.
- Arrow keys nudge by 1 pixel, and Shift+arrow moves one tile.
- Delete removes the selection.

Objects can't be rotated, and there are no text objects. A map can hold up to 2,000 objects.

## Name and label objects

Select an object and the **Object** panel appears under **Layers**.

- **Name** identifies this one, like `boss_door`.
- **Class** says what kind of thing it is, like `enemy` or `checkpoint`. Your game code can branch on it.
- **X**, **Y**, **W** and **H** set its exact position and size.
- **Custom properties** hold your own values, like `patrol_speed = 40`.

With several objects selected, a change applies to all of them. Fields that differ show **Mixed**.

## Place sprites as entities

With an object layer active, the right panel shows **Assets**: the images and animations in your project. **Click one** to place it in the middle of the view, or **drag it** to the spot you want.

Entities have two details that save a lot of fiddling:

- **They stand on the ground.** When snapping, a sprite's feet land on the bottom of the grid cell, centred, so characters of any height line up on the floor.
- **They're live.** Redraw the original and every copy updates on every map, and animated sprites play right on the map.

Entities can be flipped horizontally, but not scaled or rotated.

## Two special classes: player and collision

Two **Class** names have a built-in meaning. They aren't case-sensitive.

**`player`** marks where the character starts in Playtest. Put it on a **Point**, or on an entity, whose bottom centre becomes the start position.

**`collision`** makes an object solid. Use it on a rectangle, ellipse, polygon, polyline or entity. It counts even when its object layer is **hidden**, so you can keep invisible walls out of sight while you work. A Point has no area, so it doesn't block anything.

## What your engine receives

Export the map with ⌘E (Ctrl+E on Windows and Linux).

| In MakePixel | In Godot | In Tiled |
| --- | --- | --- |
| Tile collision | A physics layer on the TileSet | Tile collision shapes |
| Tile Class and properties | Custom data | Type and properties |
| Tile animation | Atlas animation | Tile animation |
| A shape with Class `collision` | `StaticBody2D` | Object with its class |
| Any other shape | `Area2D`, for triggers | Object with its class |
| Point | `Marker2D` | Point object |
| Entity | `Sprite2D` or `AnimatedSprite2D` | Tile object, first frame only |

The [Godot export guide](https://makepixel.ai/guide/export-to-godot/) covers the import steps.

## Common problems

**I can't draw on the map.** **Collision** is still ticked, or an object layer is selected. Untick it, or click a tile layer.

**The tile tools have disappeared.** You're on an object layer. Select a tile layer in **Layers**.

**One tile's collision changed everywhere.** Collision belongs to the tile. If only some copies should block, use a separate tile, or a `collision` object for that spot.

**Clicking in Collision view changed the wrong tile.** It targets the current layer first, then the top visible layer if the current one is empty there. Select the right layer before you click.

**A slope cleared itself.** A click or drag that starts on a tile with collision clears it. Start your drag on a tile without collision, or set the slope again in **Tile properties**.

**My Godot tile animation is missing.** Its frames aren't consecutive in the sheet. Rearrange the tiles so they follow the first frame.

## Next steps

Your level now has rules. The [tilesets and maps overview](https://makepixel.ai/features/tilesets-and-maps/) shows the rest of the workflow, and the [Godot export guide](https://makepixel.ai/guide/export-to-godot/) takes it into your game.
