Room: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:


The principle is similar for tiles : the user has first to select a tile in the tiles tab, and then he can fill the selected region with the fill button.
The principle is similar for tiles : the user has first to select a tile in the tiles tab, and then he can fill the selected region with the fill button.
In order to delete the instances or tiles in the selected region, the user can press the 'Delete' key or press the 'Delete instances/tiles' button (The button with a red cross). If the objects tab is selected, instances will be deleted, and if the tiles tab is selected, only tiles will be deleted.
In order to delete the instances or tiles in the selected region, the user can press the 'Delete' key or press the 'Delete instances/tiles' button (The button with a red cross). If the objects tab is selected, instances will be deleted, and if the tiles tab is selected, only tiles will be deleted.



Revision as of 08:59, 28 December 2014

The room editor is used to place your objects and create specific scenes and levels for your game.

Lgmroomeditor.png


Options buttons

Modes.png

These buttons are used to switch the following options : the first one enables the 'Snap to grid' option. If this option is activated, all objects are placed according to the grid. The second option 'Add on top' will ensure that when you click the left button in the room, it will always add a new object, regardless if there is already an object under the mouse cursor. The third option 'Add multiple' will add continuously objects when the mouse button is pressed. These options can be enable or disabled temporarily by pressing the following keys : Alt (disable 'Snap to grid'), Ctrl (enable 'Add on top') and Shift (enable 'Add multiple').


Selection tools

Selection tools.png

There are two selection modes in LateralGM : the single selection object mode, which is active by default, is used to select a single object. This mode can be selected by pressing the arrow button. The second mode, the region selection mode, is activated by pressing the rectangular selection button. In order to select a region, the user draws a rectangle in the room:


Draw selection.png


When a region has been selected, it can be filled with an instance or a tile. If the region has to be filled with an instance, the instance type has to be selected first in the objects tab:


Select instance.png


Then the selection region can be filled by pressing the bucket button. If the 'Delete underlying' option has been selected, all instances which are already exist in the selection will be deleted before filling the region. If the 'Snap to grid' option is selected, the region will be filled according to the grid :


Fill region 1.png


If the 'Snap to grid' mode is deactivated, the region is filled according to the instances or tiles size :

Fill region 2.png

The principle is similar for tiles : the user has first to select a tile in the tiles tab, and then he can fill the selected region with the fill button.

In order to delete the instances or tiles in the selected region, the user can press the 'Delete' key or press the 'Delete instances/tiles' button (The button with a red cross). If the objects tab is selected, instances will be deleted, and if the tiles tab is selected, only tiles will be deleted.


Cutting, copying and pasting regions

Cut copy paste.png

The buttons 'Cut' (Ctrl-x), 'Copy' (Ctrl-c) and 'Paste' (Ctrl-v) are used to copy and move regions. If the user wants to copy a region, first he will select the objects tab for selecting instances and the tiles tab for selecting tiles. Then he will select the region with the 'Select a region' button and draw a rectangle :


Select region.png


Then the 'Copy' and 'Paste' buttons are pressed. A stamp is created with the semi-transparent image of the selection :


Stamp.png


The user can move the stamp and click on the left mouse button, and it will copy the selected region on the given position :


Pasting region.png

If the 'Delete underlying' option is selected, it will delete first the instances or tiles in the region before filling it. If the user wants to exit the pasting mode, he can select 'Select an object' if he wants to select an single object or 'Select a region' to select again a region.