Skip to content

Edit Your First Map ​

Once you have added a character in Add Your First Character, try editing a map next. In this chapter we copy an existing sample map and replace tiles to turn it into original terrain.

Goals

  • Learn the basic operations on the Map tab
  • Copy an existing map to create a new one
  • Experience painting tiles in the map editor
  • Understand the three layers: Ground / Below / Above
  • Set it as the starting map on the System tab and verify

Estimated time: 20–30 minutes

Approach of this chapter

Creating a tilemap from scratch is hard, so we take the approach of copying and modifying an existing sample map.

Step 1: Open the Map Tab ​

  1. Open the Home tab with the "RPGWizard" button at the top of the editor
  2. Press the "Map" button in the left pane
  3. The Map tab opens

The left pane lists sample maps (such as map_village, map_field), and the right pane shows the properties of the selected map.

Step 2: Look at an Existing Map ​

First grasp what kinds of fields exist.

  1. Select any map (for example, map_village) from the left pane
  2. The right pane shows 8 sections lined up vertically

What to look for ​

  • ID: Map identifier (map_village)
  • Name: Display name (First Village)
  • Tilemap: Terrain data file path (.tscn)
  • Battle background: Battle background image used on this map
  • BGM: Music playing on the map
  • ME: Short music (such as a victory jingle)
  • Encounter: Enemies that appear on this map
  • Dev memo: Free-form area

A map is a 2-file structure of "settings + tilemap scene"

A map has two kinds of files: a settings file (map.json) and a tilemap scene (.tscn). The right pane of the Map tab edits the settings; the tilemap scene is edited in a separate map editor (see below).

Step 3: Copy a Sample Map ​

  1. Select any map you like (for example, map_village) from the left pane
  2. Press the Copy button
  3. A new map with an auto-numbered ID (for example, map_village_1) is added to the list
  4. The new map is automatically selected

The tilemap scene is also copied and saved as a separate file.

Step 4: Change the ID and Name ​

  1. Press the Change ID button to change to a meaningful ID (for example, map_test)
  2. Change Name in the right pane to any display name (for example, Test Field)
  3. Press the Save button

ID naming rules

Only ASCII alphanumerics and underscore (_) are allowed; empty is not allowed; must not duplicate another map's ID.

Step 5: Paint Tiles in the Map Editor ​

Now for terrain editing. This tool has a built-in tile editing window called the map editor.

  1. Press the "Edit with this tool" button in the "Tilemap" section of the right pane
  2. The map editor (popup window) opens

Layout of the map editor ​

┌─────────────────────────────────────────────────┐
│  Title (file path) + unsaved marker + cursor coordinates │
├──────────┬──────────────────────────────────────┤
│          │   Map canvas                          │
│  Tile    │   (tile placement / edit area)        │
│  palette │                                      │
│          │                                      │
├──────────┴──────────────────────────────────────┤
│  Layers: Ground / Below / Above                  │
│  Toolbar: paint / rect fill / bucket / eyedropper │
├─────────────────────────────────────────────────┤
│  Save / Close / Open in Godot                    │
└─────────────────────────────────────────────────┘

Main screen elements ​

  • Tile palette (left): list of usable tiles
  • Map canvas (center): large area for placing tiles
  • Layer switch: three layers Ground / Below / Above
  • Toolbar: buttons that switch the editing mode
  • Footer: Save / Close / Open in Godot

Step 6: Understand the Three Layers ​

The tilemap is composed of three layers. They stack from bottom to top.

LayerUse
GroundGround / floor / water (always at the bottom)
Below (below the character)Carpets, shadows, and so on, visible at the character's feet
Above (above the character)Rooftops, leaves, ceilings, and so on, drawn above the character

Layer switch

Pick the active layer with the layer switch buttons; clicking paints into that layer. You can also toggle visibility per layer to temporarily hide a layer's drawing.

Step 7: Paint Tiles in Paint Mode ​

  1. Confirm that "Paint" mode is selected on the top or toolbar of the map editor (shortcut key 1)
  2. Click any tile from the tile palette on the left (it is selected)
  3. Click an empty cell on the map canvas
  4. The tile is placed in that cell

Try it: Paint a wider area ​

  • Drag: Press and hold while moving the mouse to paint continuously
  • Shortcut key 2 (rectangle fill): Drag to fill a rectangular area at once
  • Shortcut key 3 (bucket fill): Fill from the clicked cell to the region of the same tile

Try it: Remove the wrong tile ​

  • Right-click: Right-clicking in paint / rectangle fill mode removes the tile
  • Ctrl + Z: Undo the last operation
  • Ctrl + Y: Redo

The Delete key is disabled

Deletion via the Delete key has been removed (to prevent accidents during text input). To delete, use right-click or Ctrl+Z.

Step 8: Try Other Layers ​

Once you have painted Ground a bit, try other layers too.

  1. Select Above on the layer switch
  2. Pick a tree or rooftop tile from the palette
  3. Place it so that it covers the character

Compare using the layer visibility toggle ​

Toggling the visibility of each layer ON / OFF makes it easy to see which layer handles which graphics.

Step 9: Save ​

  1. Press the "Save" button at the bottom of the map editor
  2. Confirm the unsaved marker * is gone from the title
  3. Close the map editor with the "Close" button

Unsaved confirmation on close

If you press "Close" with unsaved edits, a confirmation dialog appears. Choosing "Save" saves automatically.

Saving in the map editor ≠ saving in the Map tab

  • Saving in the map editor: saves the tilemap scene (.tscn)
  • Saving in the Map tab: saves metadata such as the map ID and name

Use both as appropriate. Editing terrain in the map editor does not reflect changes to the map ID.

Step 10: Return to the Map Tab and Save the Whole Thing ​

After closing the map editor and returning:

  1. Press the Save button at the bottom of the Map tab (just in case)
  2. Return to the Home tab and press the Save All button

Step 11: Set It as the Starting Map on the System Tab ​

To display the map you created when the game launches, set it as the starting map on the System tab.

  1. Return to the Home tab
  2. Press the "System" button in the left pane
  3. In the "Start Map" field on the System tab, pick the map ID you created (for example, map_test) from the dropdown
  4. Set "Start Coordinates X / Y" to appropriate cell values (0, 0 is fine to start; this is the player's position)
  5. Press the Save button

How to decide start coordinates

Start coordinates are specified in cell units (tile units). The map editor shows the cursor coordinates, so look up the coordinates where you want to place the player before entering them.

Step 12: Verify by Launching the Game ​

  1. Press the Save All button on the Home tab
  2. Press the Start Game button (F5)
  3. Confirm that the game launches and displays the map you made
  4. Move your character and walk on the tiles you placed

Summary: What You Learned in This Chapter ​

  • A map is a two-file structure of settings (map.json) + tilemap scene (.tscn)
  • Copy an existing map to make a base
  • Basic operations: Change ID → Name → Save
  • Paint tiles in the map editor (paint / rectangle fill / bucket fill / eyedropper)
  • The role of the three layers (Ground / Below / Above)
  • Use right-click / Ctrl+Z to delete / undo
  • Two-stage save: map editor save + Map tab save
  • Set the starting map on the System tab and verify by launching the game

Advanced: For Those Who Want to Explore More ​

The Map tab and map editor have advanced features not covered in this chapter:

  • Tile pass judgment editing: set passability per cell
  • 4-direction passability editing: fine-grained control of up / down / left / right entry
  • Region editing: zone the map (per-location encounter settings, 3D dungeon settings)
  • Object placement: place event objects such as treasure chests, NPCs, doors
  • Automatic tileset generation: auto-generate a tileset from an image
  • Terrain feature: Godot's native automatic terrain placement

Details are in the Map Tab Reference; read it when needed.

Next Chapter ​

Next is Create Your First Event, where you practice creating "events that drive the game" like NPC conversations.