Construct 3 icon

Construct 3

Documentation

The Layers Bar

Published 10 Aug, 2017
353 words
~1-2 mins

The Layers Bar is used to add, edit and remove layers in a layout. A layer is like a sheet of glass objects are painted on to. This allows easy arrangement of which objects display in front of other objects, for example showing foreground objects in front of the background sprites. It also allows for interesting depth effects like parallax, and layers can be individually scaled and rotated as well.

Layers can be dragged and dropped in the Layers Bar to change their order. Layers at the bottom of the list are displayed at the back (e.g. background objects), and layers at the top of the list are displayed at the front (e.g. HUD objects).

Selecting a layer displays its properties in the Properties Bar and also sets it as the active layer which new objects are inserted in to.

The Layers BarThe Layers Bar

The Layers list

Each layer in the list has the following:

  • A checkbox to toggle whether the layer is visible in the editor (this does not affect the game when previewing or exporting)
  • A padlock icon. Clicking this toggles the layer's locked status. If a layer is locked, objects on that layer cannot be selected in the editor. This is useful to prevent accidental selections on rarely-used layers like backgrounds.
  • A number to the right. This is a zero based index of the layer (the first layer is number 0, not 1). If you need to enter a layer number in the event system, this is the corresponding number. You can also enter layer names in the event system, which is often more convenient since unlike the numbers, the names don't change if you reorder layers.

You can right click a layer to see a menu of additional options, such as to add a new layer at the top or bottom, rename or delete layers, or shortcuts to show, hide, lock or unlock all layers (or all but the selected one).

Object Z ordering

To modify the Z order (front-to-back order) of individual objects on a layer, use the Z Order Bar Paid plans only.