Tilesets are very useful and very common to create all kind of games.
Ceilfire supports tilesets and in this tutotial I show you how to use them.
What are tilesets?
A tileset is a collection of smaller images, called “Tiles” in one single image.
This reminds of spritesheet animations, but instead of containing single frames for an animation, it contains parts of the game map. Like backgrounds, walls, platforms etc.
In previous Ceilfire version, if you wanted to create a platformer with a lot of walls, you
needed to create a sprite object for every wall. With tilesets it’s much easy and you basically “paint” the walls on your map.
Tilesets in ceilfire
How do we use tilesets in Ceilfire editor? It’s simple like everything else in Ceilfire.
First we load the tilesets like every other asset by opening the assets-browser and loading the asset.
You see that some images contain multiple objects in it? (If not press “load more assets” button until you find one) This is a tileset. Click on the blue “Load” button next to such a tileset.
You see it loaded on the left-side in the assets panel.
Now the next step would be to click on the “Layers” tab and click on the current layer.
You will see the layers properties on the right-side. Click on the tileset group.
Now press the “+ Select Tileset” button and click on the loaded tileset.
Do you see the “solid” button? It shows that the painted tileset would collide with sprites (with some collision rules or behaviours like JumpAndRun).
But clicking with the left mousebutton on tileset squares (Tiles), you select current tile to use. Now you can click on the map to paint the tile.
If your are ready editing and want to move/select sprite objects or so, press “ESC” to exit the tilesets mode. Else you would be painting tiles instead of selecting objects.
This is how easy you can create the map. Sprite object with Jump&Run behaviour will collide with the tiles.
For better editing you can enable the grid by clicking on the “Tilelayer” group in Layer properties and clicking on “Yes” in the “Show Grid property”.
This was a short introduction to tilesets. This feature will be improved in the fututure. If you have some feedback or suggestions, please ask in the forum.