Object tab
The Object tab is where you create and manage object templates placed on game maps. One entry corresponds to one template.
What is an Object?
In this tool, "people (NPCs/enemies)", "items (chests/signs)", and "buildings (doors/stairs)" placed on a map are called Objects. All of these are created in the map editor as individual instances based on templates built on this tab.
- Template: The "pattern" (appearance / collision range / initial object name) created on this tab
- Object (individual instance): The individual object created when placed on a map. Has its own unique ID (unique_id), event ID, and activation conditions
Objects created from the same template share the same appearance and collision range, but their events and activation conditions can be set individually per map.
Overview
Purpose of this screen
- Create new templates for objects placed on maps
- Edit display name, collision range, minimap category, and 3D display for existing templates
- Rebuild the image (overwrite by changing sprite splitting)
- Copy a template to create a derivative
- Delete a template
- List locations where the selected template is used
Save location
Unlike other tabs, templates created on this tab are saved in a 1 file = 1 template format:
data/objects/<ID>.tscn— the object template itselfdata/animated_sprites/<ID>.tscn— sprite frame info (referenced by the template)
Why .tscn files
Objects are saved as Godot engine scene files (.tscn). This bundles sprite, collision shape, and script into one package, allowing direct instantiation in the map editor.
Where it is referenced
- Map editor (placement): Templates are placed on maps to create objects
- Event tab (binding):
event_idis bound to placed objects - System tab (player character): Templates from this tab are used as player character options
- 3D Dungeon Settings tab: References
dungeon_3d_texture/dungeon_3d_shape - Minimap tab: References the
minimap_categorykey
Reserved IDs
Object templates have no reserved IDs. All templates can be freely created, copied, and deleted.
Screen layout
The Object tab has a 4-column layout.
Column 1 (template list)
| Element | Purpose |
|---|---|
| New button | Create a new template (opens the Object Generator dialog) |
| List | Displays all template IDs in a vertical column (scans data/objects/*.tscn) |
| Copy button | Duplicate the selected template |
| Delete button (red text) | Delete the selected template (confirmation dialog shown) |
Column 2 (preview)
Displays the selected template's sprite in the center.
| Element | Purpose |
|---|---|
| Preview area | Displays the AnimatedSprite2D of the selected template |
| ↑ button | Plays the "up" direction animation |
| ↓ button | Plays the "down" direction animation |
| ← button | Plays the "left" direction animation |
| → button | Plays the "right" direction animation |
| ■ / ▶ button | Stop / resume animation (toggle) |
When you select a template, the "down" direction animation plays automatically first. Switching with the direction buttons plays the animation for that direction.
Column 3 (property editor)
Edits the properties of the selected template.
| Item | Input format | Description |
|---|---|---|
| Object name | Text | Default display name of the template (used as the initial value when placed on a map) |
| Collision X | Choice | Horizontal collision cell count (0 / 1 / 3 / 5 / 7 / 9) |
| Collision Y | Choice | Vertical collision cell count (0 / 1 / 3 / 5 / 7 / 9) |
| Minimap category key | Text | Category key used to look up the minimap chip image |
| 3D Texture | Text + ... button | Image path for 3D Dungeon Mode display (empty skips 3D rendering) |
| 3D Shape | Choice | Display shape in 3D Dungeon Mode (Plate / Cube) |
| Rebuild Image button | — | Opens the Object Generator dialog in "image rebuild mode" (current values preset) |
| Save button | — | Saves property edits to the .tscn file |
Column 4 (objects in use)
Lists on which maps the selected template is actually used.
| Element | Purpose |
|---|---|
| List | Displays 4 columns: Map name | [Cell X, Cell Y] | Object name | Event ID |
| Open button | Opens the map in question and selects the object |
| Rebuild cache button | Scans all maps to update the in-use object list |
When you open the tab, all maps are automatically scanned and the latest list is displayed.
Meaning of properties
Object name
The default display name of the template. Used as the initial value for individual instances when placed on a map.
After placing on a map, the object name can be changed per individual instance (e.g. deriving "Villager A", "Villager B" from the same villager template).
Collision X / Collision Y
Specifies the object's collision range (hit box) in cell units.
| Value | Meaning |
|---|---|
| 0 | No collision (passable, visual only) |
| 1 | 1 cell |
| 3 | 3 cells |
| 5 | 5 cells |
| 7 | 7 cells |
| 9 | 9 cells |
Odd numbers only, except 1
Collision cells expand left-right symmetrically (X) and upward from the bottom cell (Y), so only odd numbers other than 1 are selectable. Even numbers would place the center on a cell boundary, making the expansion asymmetric.
Collision behavior:
- When the player tries to enter the object's collision range, movement is blocked (acts as a wall)
- When the player presses the confirm key facing the collision range, the event bound to the object fires
Minimap category key
Specifies the "category key" used to look up the chip for displaying this object on the minimap. Default is default.
Entering an empty string automatically falls back to default.
The mapping between keys and minimap chip images is configured on the Minimap tab.
3D Texture
Specifies the image path used when displayed in 3D Dungeon Mode.
- Empty string: Skips 3D rendering (not shown in 3D Dungeon Mode)
- Image path: Texture pasted into 3D space
Pressing the ... button opens a file selection dialog to pick an image.
3D Shape
Selects the display shape in 3D Dungeon Mode.
| Option | Meaning |
|---|---|
| Plate | Sprite3D (billboard), always faces the camera as a flat plane |
| Cube | A cube the same size as a wall |
Example uses:
- Villagers/NPCs → Plate (billboard that always faces the camera)
- Pillars/decorations → Cube (three-dimensional appearance)
Column 1: Template list operations
New
Pressing the New button opens the Object Generator dialog. In this dialog you specify the image, splitting method, and animation settings to generate the template.
Details on the Object Generator are given later.
Copy
Pressing the Copy button opens an ID input dialog for duplicating the currently selected template.
- Initial value is
<original ID>_copy - If the entered ID already exists, it is auto-numbered (
_2,_3, ...) - If the source has unsaved edits, it is auto-saved first before duplication
- After copying, the new template is automatically selected
Internal processing:
On duplication, the .tscn file is read as text, the UID is replaced with a new one, and it is saved under a different name. This prevents Godot's "duplicate UID warning".
Delete
Pressing the Delete button displays a confirmation dialog; clicking OK deletes the selected template's .tscn file.
Caution when deleting
Deleting a template does not automatically remove objects already placed on maps. Objects referencing the deleted template remain on the map but may fail to display at runtime. Before deleting, check where it is used in Column 4's "objects in use" list.
Column 2: Preview
Auto-play
When you select a template, the "down" direction animation plays automatically.
Switching direction
The ↑ / ↓ / ← / → buttons switch to each direction's animation. The direction-specific sprites use the four-direction images specified in the Object Generator dialog at creation time.
Stop / resume
Pressing the ■ button (shown while playing) stops the animation and the button changes to ▶. Pressing again resumes playback.
Column 3: Property editor
Editable conditions
The property editor UI is disabled when no template is selected. Selecting a template enables editing.
Save
After editing properties, pressing the Save button writes to the .tscn file. Changes before saving are held in memory only, and a (*) mark appears in the tab title.
Auto-save mechanism
Unsaved edits are automatically saved to the .tscn file at the following times:
- When another template is selected (edits to the previous template are auto-saved before switching)
- When the Copy button is pressed (the source's latest edits are saved before copying)
- When saved in bulk via another tab (Ctrl+S or editor shutdown)
If you want to discard your changes (e.g. you edited to try something but want to revert), be careful not to switch to another tab before discarding.
Rebuild image
Pressing the Rebuild Image button opens the Object Generator dialog in "image rebuild mode".
Characteristics of image rebuild mode:
- The ID field is not editable (fixed to the current ID)
- Image path, 4-direction frame settings, loop, speed, collision cells, and object name are preset to current values
- Minimap category key / 3D Texture / 3D Shape retain current values (no UI in the dialog; inherited from the property pane)
- Pressing the "Generate" button overwrites the existing
.tscn - No confirmation dialog (pressing the Rebuild Image button is treated as "overwrite acknowledged")
When you want to change only the image
Image rebuild is the easiest way to swap the image of an existing template. No need to change collision cells or object name; just change the image path.
Object Generator dialog
The dialog launched by New or Rebuild Image. It splits a single sprite sheet image into 4 directions × multiple frames for animation generation.
Basic info
| Item | Input format | Description |
|---|---|---|
| ID | Text | File name to save as (data/objects/<ID>.tscn). Only _ a-z A-Z 0-9 allowed |
| Image | Text + ... button | Source image (PNG, etc.). ... opens a file selection dialog |
Animation settings (4 directions × 6 items)
Specifies the frame position of each direction on the sprite sheet.
| Direction | Items |
|---|---|
| Down | Start X / Start Y / Width / Height / Split Direction / Count |
| Up | Same |
| Left | Same |
| Right | Same |
Meaning of each item:
| Item | Meaning |
|---|---|
| Start X | Leading X coordinate of the frame group on the sprite sheet (pixels) |
| Start Y | Leading Y coordinate of the frame group on the sprite sheet (pixels) |
| Width | Width of one frame (pixels) |
| Height | Height of one frame (pixels) |
| Split Direction | Horizontal (frames stretch to the right) / Vertical (frames stretch downward) |
| Count | Number of animation frames (1 to 9) |
Default values (equivalent to warrior_01):
| Direction | Start X | Start Y | Width | Height | Split Direction | Count |
|---|---|---|---|---|---|---|
| Down | 0 | 0 | 48 | 72 | Horizontal | 3 |
| Up | 144 | 0 | 48 | 72 | Horizontal | 3 |
| Left | 288 | 0 | 48 | 72 | Horizontal | 3 |
| Right | 432 | 0 | 48 | 72 | Horizontal | 3 |
Animation patterns (automatic)
Frames are arranged in the following patterns based on count N:
| Count | Pattern |
|---|---|
| 1 frame | [0] (1-frame still) |
| 2 frames | [0, 1] (2 frames alternating) |
| 3 frames | [0, 1, 0, 2] (walking animation, back-and-forth motion) |
| 4 frames | [0, 1, 2, 3] |
| 5-9 frames | [0, 1, 2, ..., N-1] |
The 3-frame pattern is special
The 3-frame pattern [0, 1, 0, 2] places frame 1 in the center and alternates frames 2 and 3, suitable for walking animations.
Common settings
| Item | Input format | Default | Description |
|---|---|---|---|
| Loop | Checkbox | ON | Whether to loop the animation |
| Speed | Number (0.1 to 30.0) | 5.0 | Animation playback speed (FPS) |
| Collision Cells X | Choice (0/1/3/5/7/9) | 1 | Horizontal collision cell count |
| Collision Cells Y | Choice (0/1/3/5/7/9) | 1 | Vertical collision cell count |
| Object name | Text | Empty | Default display name of the template |
Generate button
Pressing the Generate button produces the following 2 files:
data/animated_sprites/<ID>.tscn— sprite frame info (SpriteFrames resource)data/objects/<ID>.tscn— the object template itself (RigidBody2D + AnimatedSprite2D + CollisionShape2D)
After generation, the dialog closes, the list updates, and the new template is automatically selected.
Error display
If the ID is empty, the image is unspecified, or required frame settings are missing, an error message is displayed at the bottom of the dialog (localized). Generation is blocked until errors are resolved.
Column 4: Objects in use list
Lists actual placed objects on maps that use this template.
List columns
| Column | Content |
|---|---|
| Map name | Name of the map where the object is placed |
| Cell coordinates | Cell coordinates on the map [X, Y] |
| Object name | Object name of the individual instance on the map |
| Event ID | Event ID bound to the object (empty if unset) |
Open button
Select a row in the list and press the Open button to open the map in the map editor and select the object. Gives quick access to confirm or edit the placement.
Rebuild cache button
Pressing the Rebuild cache button scans all maps and rebuilds the index of "which template is used on which map". Use this when you want to refresh after editing a map.
Rebuilding also runs automatically when the tab is opened.
Typical usage flow
Flow 1: Create a new object template
- Press the New button
- In the Object Generator dialog, enter:
- ID:
villager_01 - Image: pick the sprite sheet image via the
...button - Adjust the 4-direction frame settings (Start X/Y, Width, Height, Split Direction, Count)
- Loop: ON, Speed: 5.0
- Collision Cells X: 1, Y: 1
- Object name:
Villager
- ID:
- Press the Generate button
villager_01is added to the list and auto-selected- Fine-tune via properties in Column 3 as needed, then press the Save button
Flow 2: Copy an existing template to make a derivative
- Select
villager_01in the list - Press the Copy button
- In the ID input dialog, enter
villager_02and click OK villager_02is created and auto-selected- Change collision cells or object name in properties, then press Save button
Flow 3: Swap the image
- Select the target template in the list
- Press the Rebuild Image button (bottom of Column 3)
- In the Object Generator dialog, select the new image path
- Adjust the 4-direction frame settings if needed (previous values are preset)
- Press the Generate button
- The existing
.tscnis overwritten and displayed with the new image
Flow 4: Confirm usage and delete
- Select the target template in the list
- Check the objects in use list in Column 4
- If used on any maps, press the Open button to go to the map and check
- If no issues, delete via the Delete button in Column 1
Flow 5: Disable NPC collision (visual-only object)
- Select the target template in the list
- In Column 3, change both Collision X and Collision Y to
0 - Press the Save button
- Instances placed on maps become visual-only objects that the player can walk through
Flow 6: Display in 3D Dungeon Mode
- Select the target template in the list
- In Column 3, set 3D Texture to a 3D-use image path (e.g.
data/sprites/npc_front.png) - Pick 3D Shape as
Plate(NPCs, statues) orCube(pillars, decorations) - Press the Save button
- When playing a 3D Dungeon Mode map, this object displays with the specified 3D shape
Related tabs
| Tab | Related content |
|---|---|
| Map tab | Places templates from this tab on maps to create objects |
| Event tab | Binds event_id to placed objects to fire events |
| System tab | Uses templates from this tab for player character selection |
| 3D Dungeon Settings tab | References dungeon_3d_texture / dungeon_3d_shape (3D display settings) |
| Minimap tab | References the minimap_category key (minimap display) |
Notes
1 entry = 1 file
Unlike other tabs, templates built here are saved as individual files data/objects/<ID>.tscn. These are Godot scene files, not JSON.
Auto-save and timing
Unsaved edits are automatically saved to the .tscn file at the time of template switch, copy, bulk save, or editor shutdown. If you have changes you do not want to save, be careful before switching to another tab.
Difference between templates and objects
What you create on this tab is a "template" (pattern). Individual instances placed on maps (objects with a unique_id) are created in the map editor. Changing a template changes the "appearance / collision / default values" of all instances, but each instance's event ID and activation conditions remain as individually set.
Referential integrity on delete
Deleting a template does not automatically remove individual instances placed on maps. Before deleting, check where it is used in Column 4's "objects in use" list.
No even numbers for collision cells
Collision cells only offer 0 / 1 / 3 / 5 / 7 / 9. Even numbers cannot be selected (due to the symmetric expansion mechanism).
Image rebuild overwrites existing
The image rebuild feature completely overwrites the existing .tscn. No confirmation dialog is shown, so operate with care. If you want to revert, make a backup via the Copy feature beforehand.
UIDs are automatically regenerated on duplication
When a template is copied, its internal Godot UID is automatically regenerated. This prevents duplicate-UID warnings. Users do not need to worry about this.
