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.
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.
Click on objects in the main window to select them. The rectangle surrounding the object in the editor view will highlight green.
In addition you can select objects by:
To move objects, use the Move Tool. It is accessible through the menu Scene ▸ Move Tool or by pressing the W key.
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:
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.
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…
The Rotate Tool is accessible through the menu Scene ▸ Rotate Tool or by pressing the E key.
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.
The Scale Tool is accessed through the menu Scene ▸ Scale Tool or by pressing the R key.
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.
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.
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.