Skip to content

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 itself
  • data/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_id is 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_category key

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) ​

ElementPurpose
New buttonCreate a new template (opens the Object Generator dialog)
ListDisplays all template IDs in a vertical column (scans data/objects/*.tscn)
Copy buttonDuplicate 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.

ElementPurpose
Preview areaDisplays the AnimatedSprite2D of the selected template
↑ buttonPlays the "up" direction animation
↓ buttonPlays the "down" direction animation
← buttonPlays the "left" direction animation
→ buttonPlays the "right" direction animation
■ / ▶ buttonStop / 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.

ItemInput formatDescription
Object nameTextDefault display name of the template (used as the initial value when placed on a map)
Collision XChoiceHorizontal collision cell count (0 / 1 / 3 / 5 / 7 / 9)
Collision YChoiceVertical collision cell count (0 / 1 / 3 / 5 / 7 / 9)
Minimap category keyTextCategory key used to look up the minimap chip image
3D TextureText + ... buttonImage path for 3D Dungeon Mode display (empty skips 3D rendering)
3D ShapeChoiceDisplay 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.

ElementPurpose
ListDisplays 4 columns: Map name | [Cell X, Cell Y] | Object name | Event ID
Open buttonOpens the map in question and selects the object
Rebuild cache buttonScans 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.

ValueMeaning
0No collision (passable, visual only)
11 cell
33 cells
55 cells
77 cells
99 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.

OptionMeaning
PlateSprite3D (billboard), always faces the camera as a flat plane
CubeA 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 ​

ItemInput formatDescription
IDTextFile name to save as (data/objects/<ID>.tscn). Only _ a-z A-Z 0-9 allowed
ImageText + ... buttonSource 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.

DirectionItems
DownStart X / Start Y / Width / Height / Split Direction / Count
UpSame
LeftSame
RightSame

Meaning of each item:

ItemMeaning
Start XLeading X coordinate of the frame group on the sprite sheet (pixels)
Start YLeading Y coordinate of the frame group on the sprite sheet (pixels)
WidthWidth of one frame (pixels)
HeightHeight of one frame (pixels)
Split DirectionHorizontal (frames stretch to the right) / Vertical (frames stretch downward)
CountNumber of animation frames (1 to 9)

Default values (equivalent to warrior_01):

DirectionStart XStart YWidthHeightSplit DirectionCount
Down004872Horizontal3
Up14404872Horizontal3
Left28804872Horizontal3
Right43204872Horizontal3

Animation patterns (automatic) ​

Frames are arranged in the following patterns based on count N:

CountPattern
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 ​

ItemInput formatDefaultDescription
LoopCheckboxONWhether to loop the animation
SpeedNumber (0.1 to 30.0)5.0Animation playback speed (FPS)
Collision Cells XChoice (0/1/3/5/7/9)1Horizontal collision cell count
Collision Cells YChoice (0/1/3/5/7/9)1Vertical collision cell count
Object nameTextEmptyDefault display name of the template

Generate button ​

Pressing the Generate button produces the following 2 files:

  1. data/animated_sprites/<ID>.tscn — sprite frame info (SpriteFrames resource)
  2. 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 ​

ColumnContent
Map nameName of the map where the object is placed
Cell coordinatesCell coordinates on the map [X, Y]
Object nameObject name of the individual instance on the map
Event IDEvent 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 ​

  1. Press the New button
  2. 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
  3. Press the Generate button
  4. villager_01 is added to the list and auto-selected
  5. Fine-tune via properties in Column 3 as needed, then press the Save button

Flow 2: Copy an existing template to make a derivative ​

  1. Select villager_01 in the list
  2. Press the Copy button
  3. In the ID input dialog, enter villager_02 and click OK
  4. villager_02 is created and auto-selected
  5. Change collision cells or object name in properties, then press Save button

Flow 3: Swap the image ​

  1. Select the target template in the list
  2. Press the Rebuild Image button (bottom of Column 3)
  3. In the Object Generator dialog, select the new image path
  4. Adjust the 4-direction frame settings if needed (previous values are preset)
  5. Press the Generate button
  6. The existing .tscn is overwritten and displayed with the new image

Flow 4: Confirm usage and delete ​

  1. Select the target template in the list
  2. Check the objects in use list in Column 4
  3. If used on any maps, press the Open button to go to the map and check
  4. If no issues, delete via the Delete button in Column 1

Flow 5: Disable NPC collision (visual-only object) ​

  1. Select the target template in the list
  2. In Column 3, change both Collision X and Collision Y to 0
  3. Press the Save button
  4. Instances placed on maps become visual-only objects that the player can walk through

Flow 6: Display in 3D Dungeon Mode ​

  1. Select the target template in the list
  2. In Column 3, set 3D Texture to a 3D-use image path (e.g. data/sprites/npc_front.png)
  3. Pick 3D Shape as Plate (NPCs, statues) or Cube (pillars, decorations)
  4. Press the Save button
  5. When playing a 3D Dungeon Mode map, this object displays with the specified 3D shape
TabRelated content
Map tabPlaces templates from this tab on maps to create objects
Event tabBinds event_id to placed objects to fire events
System tabUses templates from this tab for player character selection
3D Dungeon Settings tabReferences dungeon_3d_texture / dungeon_3d_shape (3D display settings)
Minimap tabReferences 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.