Layers, objects and collisions
The layers
The Layers panel lists the layers of the level. Every row has the arrow to open the list of objects, the eye, the padlock, the name, the number of items and the bin.
| I want to | How to do it |
|---|---|
| Add a layer | New layer: it is added at the top of the list, so in front, and empty. |
| Hide a layer | Click the eye. |
| Lock a layer | Click the padlock: the content can no longer be changed. |
| Change the order | Drag the row above or below another one. |
| Rename a layer | Click it and type the name in Layer name, in the Properties panel, then Apply. |
| Delete a layer | Click the bin. It only works if the layer is empty. |
Click a row to make it the active layer: that is where tile mode paints. Every level always has at least one layer. Tilemaps, shapes, points and sprites can all live on the same layer: there are no different kinds of layer.
The order matters: the layer at the top of the list is in front of the others. You draw from the last layer to the first and, inside each layer, from the bottom up: first the tilemap cells, then the sprites, then the shapes, and finally the points.
The objects
You add every object with Add Object: right-click the drawing area or the Project panel. Then choose the tab and press Insert.
| Object | What it is for |
|---|---|
| Tileset | A ground image you draw tiles from. |
| Shape | A rectangle: usually a wall or a floor. |
| Point | A single point on the level, for example the spawn point. |
| Sprite | A single image, like a tree or a sign. The Sprite Editor opens. |
The Name field of the window only applies to Shape and Point: for tilesets and sprites the name is the image file name.
Shapes also appear in the Object folder of the Project panel: they are grouped under Shapes (N), each with its name and its label beside it. A click on a row selects the shape and frames it; if the shape is on a hidden or locked layer, the message at the bottom tells you. The same shapes stay visible in Layers too.
To move an object select it and drag it. The eight handles resize it. Del or Backspace (or the Delete button) remove it. To place more copies of a sprite drag its row from the Object folder onto the drawing area.
The Sprite Editor
In the window choose the file with Choose image file. The crosshair button opens the Image Points panel, where you move the Origin, that is the point the sprite is anchored to the level by. Another button shows a grid to align it precisely. Then press Load: the sprite appears on the active layer.
Labels and collisions
What blocks the character is not decided by the drawing but by the Label you give the objects. You choose the label from a list: the i button next to the field shows Labels supported by the server.
| Label | What it means |
|---|---|
| solid | Solid block: the character cannot cross it from any direction. |
| oneway | Floating platform: you land on it from above and cross it from below and from the sides. |
| spawn | Where the characters appear. It does not block. |
- A shape without a label does not block. A new shape starts as solid.
- A painted cell without a label is just decoration. To block, select it with Select and give it a label: it becomes a block as big as the cell. The outline is blue for solid, amber for oneway, grey without a label.
- A sprite only blocks if it has a Hitbox (width × height) filled in and a solid or oneway label. Show collision is only a preview.
- A label the game does not know is treated as a solid wall, with a dashed outline and an exclamation mark.
What changes with the movement mode
You choose the mode on the panel's Configuration page, in Movement mode.
| Mode | What blocks |
|---|---|
| Tile | solid shapes stop the step, like solid labelled cells and sprites with a collision area; oneway and none are walked through. See The level. |
| Platform | solid and oneway work as described above. |
| 8 directions | Like Platform, but oneway behaves like solid: in a top-down view it makes no sense. |
Note
If you draw the walls and the character walks through them, check the movement mode on the Configuration page first.