You are just one step away from creating awesome games!

Sign up with Google

You need a Google account to use Defold

- Select manual -

Scene editing

Defold contains a number of editors, but the Scene Editor is the one used the most. All Game Objects and Collections, as well as some component types, are created and edited in this editor.

Viewport Navigation

Alt + Middle button (three button mouse) or Option + Ctrl + Mouse button (one button mouse)
Alt + Right button (three button mouse) or Ctrl + Mouse button (one button). If your mouse has a scroll wheel, it can be used to zoom.

If you have a mouse wheel, it can be used to zoom the view. In OS X, two finger swipes up and down on the trackpad are equivalent to rolling the mouse wheel, so you can use those gestures to zoom.

To reset the view to where the whole scene is visible in the window, select Scene ▸ Frame Objects from the menu or press F.

Selecting objects

Click on objects in the main window to select them. The rectangle surrounding the object in the editor view will highlight green.

Select object

In addition you can select objects by:

  • Clicking an empty area in the view where there is no object, then drag to select all objects inside the drawn region.
  • Click objects in the Outline view.
  • Hold [[Shift]] and click to select multiple objects in the editor view. You can also hold (Mac) or Ctrl (PC/Linux) while clicking.
  • Click one object in the Outline view, then hold Shift and click a second object to select the two objects and everyone in between.
  • Hold (Mac) or Ctrl (PC/Linux) and click to select multiple objects in the Outline view.

The Move tool

To move objects, use the Move Tool. It is accessible through the menu Scene ▸ Move Tool or by pressing the W key.

Scene menu

The selected object now shows three manipulation points that are used to move the object. Click and drag in the green square to move the object freely:

Move object

You can also move the object along just one selected axis by clicking and dragging along the corresponding arrow. Clicking and dragging on the red arrow allows movement on the X axis only whereas clicking and dragging on the green arrow allows movement on the Y axis only.

Move against the grid

Hold Shift when using the move tool to snap the center of the game object to the grid. The default grid size is set to 100. If you wish to alter the size of the grid, you can specify a custom grid size in the preferences. Select Defold Editor ▸ Preferences…

Grid size

Rotate Tool

The Rotate Tool is accessible through the menu Scene ▸ Rotate Tool or by pressing the E key.

Rotate object

This tool consists of three handles that you can manipulate. If you are working on 2D objects, you would probably only want to use the handle that rotates around the Z axis, which is the blue circle around the object. Click and drag on the circle to rotate the object.

If you want to rotate around the X or Y axis, click and drag on the green and red circles. Since the view is peripendicular to those axis, the circles only appear as two lines crossing the object: a green horizontal one and a red vertical.

Scale Tool

The Scale Tool is accessed through the menu Scene ▸ Scale Tool or by pressing the R key.

Scale object

Click the red or green handle and drag to scale the object. Game objects can be scaled freely along the X and Y axis, causing the object to stretch or compress visually.

Currently, sprites can not be scaled in the editor. They do, however, support runtime free-form scaling. See the 2D Graphics documentation for details.

Selecting what is showing in the Scene Editor

It is often convenient to be able to disable the visual rendering of certain types of information in the Scene Editor, especially when you are working on a complicated collection with lots of objects containing physics, triggers and layers upon layers of graphical assets. The Scene Editor allows you to enable and disable the rendering of different types of information in the editor. Select the Scene ▸ Show submenu and then chose what you want to see in the editor.

Showing information

The choices you make are stored in the editor and apply to all Scene Editor instances. Your choices are rememberered between sessions too so if you close the Defold editor down and start it up the next day, your Show settings will be intact.

I want to report anonymously.