Show Minimap
Category: Map/World
An event content that displays a minimap window on screen. Automatically display it on entering a dungeon, or switch screen size and visible range via events. Works the same way for 2D maps and 3D Dungeon Mode.
Operates as "partial overwrite" of existing settings
Omitted properties keep the existing setting values. For example, changing only size_x leaves the position and visible cells at the previous settings and only changes the width. Switching like "keep the position but widen the visible range" is simple to write.
Minimap base settings are required in advance
Before using this event content, you need to configure atlas image (chip texture) and the category mapping table in Editor · Minimap. Without these configured, calling this event content will not draw the minimap correctly.
Property List
| Item | Input format | Range | Default | Description |
|---|---|---|---|---|
| Position X | SpinBox | -9999 to 9999 | 8 | Horizontal margin from the bottom-right of the screen (px) |
| Position Y | SpinBox | -9999 to 9999 | 8 | Vertical margin from the bottom-right of the screen (px) |
| Size X | SpinBox | 10 to 9999 | 176 | Minimap window width (px) |
| Size Y | SpinBox | 10 to 9999 | 176 | Minimap window height (px) |
| Visible Cells X | SpinBox | 1 to 99 | 9 | How many cells wide to show |
| Visible Cells Y | SpinBox | 1 to 99 | 9 | How many cells tall to show |
Property Details
Position X / Position Y
Specifies the minimap window as a margin from the bottom-right of the screen.
- Unit is px (pixels)
(0, 0)sits flush against the bottom-right(8, 8)is the default (8px inside the right and bottom edges)- Negative values fall back to the default behavior (bottom-right placement) in principle
Resolution-independent placement
Since the origin is the bottom-right, it is always placed at the bottom-right regardless of window resolution. The design "fits in the corner at any resolution."
Size X / Size Y
Specifies the actual size (px) of the minimap window. The minimap is drawn within this rectangle.
- Unit is px
- Default: 176 × 176 square
- Smaller for compactness, larger for wide-range maps
- You can also dynamically change it in-event for staging like "usually small, enlarged in specific scenes"
Visible Cells X / Visible Cells Y
Specifies how many cells of the map are displayed in the minimap.
- Odd numbers recommended (so the PC marker sits in the center and the surroundings are symmetric)
- Default: 9 × 9 cells
- Fewer cells → each cell drawn larger; more cells → wider view (but each cell drawn smaller)
Per-cell draw size is auto-calculated
The per-cell draw size is automatically determined by "size ÷ visible cells" (X and Y independent). For example, with size_x=176, visible_cells_x=11, one cell is drawn at 16px wide.
Runtime Behavior
Processing flow
- Partial overwrite of settings: Copies the current minimap settings (
save_data.world.minimap_config), and overwrites only the properties specified by this event content - Turn visible flag ON:
save_data.world.minimap_visible = true - Apply to window: Reflects the new position, size, and visible cells on the minimap window
- Trigger redraw:
_draw()is called next frame and the minimap is drawn - Advance to next event content: Advances immediately (no wait)
"Partial overwrite" specification
This event content updates only the specified properties. This enables:
- "Keep the position, only widen the visible cells"
- "Change only the size and keep others"
- "First call specifies everything, later calls specify only changed parts"
By calling multiple times, you can flexibly change how the minimap looks along the event flow.
The PC marker is always centered
No matter what position / size you specify, the PC (protagonist) marker in the minimap is always shown at the window center (tool-fixed specification). When the PC moves, the appearance updates by scrolling the map inside the minimap.
Drawn elements
The minimap draws:
- Background: Semi-transparent black (
alpha=0.6) - Terrain chips: Auto-selected from 16 patterns using 4-direction wall judgments
- Unexplored cells: Including out-of-map range, drawn with dedicated chips
- PC marker: Arrow shown at the center (rotated by
pc_facing) - Object markers: Displayed per the category specified by
event_object.minimap_category
Supports both 2D and 3D modes
This event content works the same for 2D maps and 3D Dungeon Mode. Even in 3D dungeons, a 2D top-down minimap is displayed, so the player can grasp the current location in 2D.
Saving to save data
Settings are saved to save_data.world.minimap_config, and the minimap_visible=true flag is also retained. The minimap keeps displaying with the same settings across save → load.
Typical Flows
Flow 1: Automatic display on entering a dungeon
Display the minimap on entering a dungeon:
- (Map switch at the dungeon entrance)
- Show Minimap (this event content)
- Position X: 8
- Position Y: 8
- Size X: 176
- Size Y: 176
- Visible Cells X: 9
- Visible Cells Y: 9
- Show Text: "You entered the dungeon. The minimap is shown in the bottom-right."
Flow 2: Temporary wide-view minimap
Widen the view before a boss room, etc., where you want the player to see a wide area:
- Show Minimap (this event content)
- Visible Cells X: 25
- Visible Cells Y: 25
- Show Text: "You can see the surroundings."
- (After the battle)
- Show Minimap (this event content)
- Visible Cells X: 9
- Visible Cells Y: 9
Flow 3: Switch to a large-screen minimap (overview map display)
Display a large minimap when using a "Map" item:
- Show Minimap (this event content)
- Size X: 600
- Size Y: 600
- Visible Cells X: 30
- Visible Cells Y: 30
- Show Text: "You unfolded the map!"
- (Wait for the player to finish reading the map)
- Show Minimap (this event content): Restore the size
- Size X: 176
- Size Y: 176
- Visible Cells X: 9
- Visible Cells Y: 9
Flow 4: Change minimap position (avoid UI overlap)
Temporarily move the minimap so it does not overlap the battle UI during a battle event:
- Show Minimap (this event content)
- Position X: 100
- Position Y: 300
- (Battle scene)
- Show Minimap (this event content): Restore the position
- Position X: 8
- Position Y: 8
Typical Combinations
- Hide Minimap: Hide temporarily during battles or cutscenes
- Change Map: Re-show or adjust position of the minimap when moving to a new map
- Mark Map All Explored: Mark the entire minimap as explored (effect of a map item, etc.)
- Clear Map Explored: Reset the minimap's explored info
- Assign Variable: Save the current minimap setting values so they can be restored
- Show Text: Explain the meaning or usage of the minimap to the player
Related Events
- Hide Minimap: The counterpart of this event content; hides the minimap
- Mark Map All Explored: Marks the entire map as explored (effect of a map item, etc.)
- Clear Map Explored: Clears all map-explored info
- Change Map: Continuation of the minimap display across map switches
Related Pages
- Editor · Minimap — Atlas image / category mapping configuration
- Editor · Object — How to set
minimap_category - Editor · Map — Map structure referenced by terrain chips
Notes and Constraints
Atlas image and category mapping must be configured in advance
Even if you display the minimap with this event content, it will not be drawn correctly without the following in Editor · Minimap:
- Atlas image (chip_texture): A single image with PC marker, terrain, and object chips laid out
- Chip size (chip_size_x/y): Size of each chip within the atlas
- Category mapping (minimap_categories): Mapping from
event_object.minimap_categoryvalues to chip indices
These are shared basic settings for all maps. If the minimap is completely black with nothing drawn, check these first.
Per-cell size is auto-calculated (size ÷ visible cells)
The per-cell draw size cannot be specified directly by the user. It is automatically determined by "size / visible cells." If you want "large, easy-to-read cells," design with "larger size or fewer visible cells."
Odd number of visible cells recommended
Because the PC marker is pinned to the center, choosing an odd number of visible cells displays the PC's surroundings symmetrically for a natural look. With even numbers, the PC marker ends up offset by 1 cell front/back or left/right.
The position origin is the bottom-right of the screen
The position specification is a margin from the bottom-right of the screen (not from the top-left). "Positioned 8px inside the bottom-right" is standard. Negative values fall back to the default bottom-right behavior, so you cannot use negative values to pull the window toward the top-left.
Stopped by enable_process during battles / windows
While battles or windows (menu, save screen, etc.) are open, the minimap keeps its drawing but its process stops. The drawing remains, so it keeps appearing on screen, but the detection of PC position changes stops (resumes when the window is closed).
Common to 2D / 3D modes
A 2D top-down minimap is displayed even during 3D Dungeon Mode. Requirements like "want a different minimap UI in 3D dungeons" are not supported (always the same 2D top-down style).
