Ogmo Editor Hotkeys and Shortcuts

OGMO Editor HotkeysThe Ogmo Editor, developed by Matt Thorson, is an open-source program that can be used as a generic level-editor when designing 2D games. The level data can be saved in various XML formats that can subsequently be processed by code in a game engine. While experimenting with the application, initially it was not obvious to me how one is supposed to move the Camera box in the level editor, and a web search didn’t find much documentation. So, I looked at the code (ah, the wonder of open-source software) and found the solution: the user must hold down the C-key while clicking in the main editing window (well, I would never have guessed that). Now I have a list of the hotkeys/keyboard-shortcuts that may be useful to others also, which can be found below. The initial list was made for version 2.1.0.6 of OGMO.

 

Level Editor

The mouse is used in the main editor window to draw the level, but there are actually three modes that the mouse can be in at any time:

  • Normal mode – Your usual editing mode,
  • Pan mode – Hold down the Spacebar and drag the background to move the level around, or
  • Camera mode – Hold down the C-key and click on the background to position the Camera box; of course, you need to have the camera checkbox Enabled in the Project’s settings to have this option.

Here’s a summary of the general keys that work in the level editor windows.

Hotkey Description
Home Center the view in the window
+ (plus) Zoom in to the level (or use the mouse wheel; version 2.1.0.6 does not support the numeric-pad plus-key, currently only the regular + key works, but I submitted the code to make this work in a future version)
- (minus) Zoom out of the level (or use the mouse wheel; as with the plus key, version 2.1.0.6 does not yet support the numeric pad’s minus-key)
Spacebar Hold down the key to pan the level with a mouse drag
C Hold down and click to move the camera window area

 

Grid Layer Editor

Hotkey Description
Delete Remove the selected cells
A Move the selected cells left
D Move the selected cells right
W Move the selected cells up
S Move the selected cells down

Note: To move the selection of cells, also try using the regular cursor keys in a future version.

 

Entity Layer Editor

Hotkey Description
Delete Remove the selected entities

 

Tools Window

Hotkey Description
Keys 1 through 9 The regular numeric digits select the current active tool.

Depending on the Type of the current layer, the numbers map as follows.

  • Grid layers: (1) Pencil, (2) Flood Fill, (3) Rectangle, (4) Line, (5) Select, and (6) Move Selection.
  • Tiles layers: (1) Pencil, (2) Eyedropper, (3) Flood Fill, (4) Rectangle, (5) Line, (6) Select, and (7) Move Selection.
  • Entities layers: (1) Create, (2) Erase, (3) Select, (4) Move, (5) Resize, (6) Add Node, and (7) Insert Node.

 

Layer Window

Hotkey Description
Ctrl + 1 through 9 Make one of the specific numbered layers the currently active one.

 

Tile Palette Window

Hotkey Description
A Move the tile selection left
D Move the tile selection right
W Move the tile selection up
S Move the tile selection down

 

View State

One can toggle the visibility of the various auxiliary windows as follows:

Hotkey Description
F1 Layers selection window
F2 Tools window
F3 Tile Palette selection (for Tiles layers only)
F4 Entities list (for Entities layers only)
F5 Entity Selection (for Entities layers only)

 

Main Window

Many of the following are general shortcut keys, but for completeness they are also listed.

Hotkey Description
Ctrl + G Editing Grid
Ctrl + D Deselect
Ctrl + A Select All
Ctrl + V Paste
Ctrl + C Copy
Ctrl + X Cut
Ctrl + Y Redo
Ctrl + Z Undo
Ctrl + W Close Level
Ctrl + S Save Level
Ctrl + Shift + S Save Level As (with a dialog window for the new name)
Ctrl + O Open Level
Ctrl + N New Level
Ctrl + L Level Properties