Tiled — short guide

Kristian Tuusjarvi
4 min readDec 31, 2023

--

I will discuss the Tiled map editor for 2D games in this article.

Tiled supports editing tile maps in various projections (orthogonal, isometric, hexagonal) and also supports building levels with freely positioned, rotated or scaled images or annotating them with objects of various shapes. — Tiled website.

Tiled is a free-to-use software developed by Thorbjørn Lindeijer and other contributors. We used Tiled with Flutter’s Bonfire plugin to create an isometric ninja bear during a local Game Jam. I wrote this little guide for the game to help my teammates develop it. I thought this might help other people as well. Check out our finished product here.

Download Tiled from here.

Creating a project

First, create a new project.

Creating a project.

Adding a new map

Then, add a map to it. If necessary, you can set the tile size. Additionally, you can select the map size in tiles. You can also set the orientation, format, and other settings.

Creating a map.

Adding a new tileset

You can set the tile size and margins. Tileset contains different tiles you want in your map—for example, floor, walls, enemies, water, trees, etc.

Adding a tileset to a map.

Painting tiles on a map

Here, we can see our tileset and the different tiles within our tileset. You can use the brush tool to select a tile and paint the map.

Painting tiles is an intuitive and easy way to create a map.
Floor and wall of the map.

Rotating tiles

If you want to rotate the tiles, there is a tool for that, too.

Rotating tiles.

Creating an object

We can create objects on top of the tiles to make them recognizable in the game engine.

New object layer.
Adding an object to the object layer. There are different shapes of objects you can create.
Naming the object.
Example of a game object that is loaded to a game.

Create animations

We can also create animations.
- Navigate to the tileset editing page or click edit tileset again.
- Click the camera icon to open the animation editor.
- Select the tiles to animate them and set the frame duration.
- Close and go back to the project page.

The edit tileset page is hidden inside the tilesets panel.
Animation editor window. Selecting the frames we want to animate and the duration.
Sorry, I didn’t bother to make a gif of this. :D

Create collisions

We have to use the collision editor on the tileset to create collisions. Edit tileset. A new window will open.

The edit tileset page is hidden inside the tilesets panel.

Select the tile you want to add collisions over. You can adjust precise values on the left.

Add collision to the tile.

Move back to the map file to view the result (obviously, this is not very smart as the collisions should be in the walls, not the floor).

Move back to the main project.

Leave a comment or clap if you enjoyed it or want to give feedback. :)

Support Tiled!

Previous article: Flutter Web production build testing with Lighthouse

YouTube

Twitter

Website

GitHub

--

--