Change PC Sprite
Category: Character/Party
An event content that dynamically switches the appearance of the hero (walking character). It is used when you want to swap the hero's walking graphic during the game, such as "disguise event", "appearance change by equipment", "transparency effect", or "growth expression through story progression".
Facing is automatically carried over
At switching time, the direction the hero is currently facing is automatically reflected on the new sprite. "Change appearance during conversation while facing down → displayed with the new sprite still facing down" switches seamlessly without discomfort.
Specifying an empty path makes the PC disappear from the screen
If the sprite path is set empty, the existing hero sprite is deleted but no new sprite is added, so the hero becomes invisible on screen. It can be used intentionally as a "temporarily hide the hero" use case, but note that if left empty by mistake the hero will remain missing. To restore the appearance, use this event content again with the original sprite path.
Property list
| Item | Input format | Description |
|---|---|---|
| Walking Character | Text input + file select button | Path to the walking character applied to the hero (data/objects/*.tscn) |
This event content has only one property and is very simple.
Property details
Walking Character
Specifies the path to the walking character scene (.tscn) applied to the hero.
- Input field: Textbox + file select button
- Target folder: Under
data/objects/ - File filter:
*.tscn - Specifying empty makes the hero disappear from the screen (see warning above)
Supported scene formats
This tool supports 2 kinds of walking character scene formats:
| Format | Structure | Notes |
|---|---|---|
| New format (recommended) | Root: RigidBody2D / child: AnimatedSprite2D | Same structure as object templates (data/objects/*.tscn). Generated by Object Generator |
| Old format (compatibility) | Root: standalone AnimatedSprite2D | Compatibility support for walking character scenes created in old versions |
In the new format, AnimatedSprite2D's position is adjusted to align with the foot center, so the appearance is stable. In the old format, the image center overlaps the hero's foot center, so depending on the image it may stick out up and down. We recommend replacing existing old-format scenes with new-format via Object Generator.
When specifying a nonexistent path
If the resource at the specified path does not exist, it behaves the same as empty path specification (existing sprite is deleted and new sprite is not placed). To avoid making the hero disappear by typos, it is safer to choose from the file select button.
Runtime behavior
Processing flow
- Update save data: Save the specified walking character path to save data
- Delete existing sprite: Delete all currently displayed hero sprite nodes
- Place new sprite:
- Empty path or nonexistent path → no new sprite placed (hero disappears from screen)
- New-format scene → extract AnimatedSprite2D from the root's child and integrate into the hero
- Old-format scene → integrate the AnimatedSprite2D directly into the hero
- Reflect facing: The direction the hero was facing immediately before switching is reflected on the new sprite's animation (e.g., if walking down, the new sprite also faces down)
Save to save data
The walking character path set by this event content is saved to save data, so the appearance is maintained even after save → load. If you save during gameplay, the game resumes with the same appearance after loading.
Switching while walking
Even if this event content is called while the hero is walking (during animation playback), it switches safely. Since the facing is preserved, the walking animation continues without interruption.
Typical usage flows
Flow 1: Disguise event
Staging of changing clothes to infiltrate the castle:
- Show Text: "Changed into disguise clothes..."
- Change PC Sprite (this event content)
- Walking Character:
data/objects/pc_disguise.tscn
- Walking Character:
- Change BGM: Switch to a tense BGM
Flow 2: Appearance change by equipment
Staging of reflecting on appearance when armor is equipped (linked with a separate equipment processing event):
- Change Item (Change Parameter): Set the armor to the equipment slot
- Change PC Sprite (this event content)
- Walking Character:
data/objects/pc_armor.tscn
- Walking Character:
- Show Text: "Equipped with sturdy armor!"
Flow 3: Transparency effect (temporarily hide the hero)
Staging of making the hero invisible on screen:
- Change PC Sprite (this event content)
- Walking Character: (empty)
- Play sound effect: Transparency sound
- (event during transparency)
- Change PC Sprite (this event content) — restore
- Walking Character:
data/objects/pc_default.tscn
- Walking Character:
Flow 4: Growth expression through story progression
Staging of switching to a grown-up appearance of the hero:
- Fade Out Screen: Darken the screen
- Change PC Sprite (this event content)
- Walking Character:
data/objects/pc_adult.tscn
- Walking Character:
- Fade In Screen: Restore the screen
- Show Text: "10 years have passed..."
Typical combinations
- Fade Out / Fade In Screen: Insert before and after sprite change to show the moment of appearance change naturally
- Change BGM (Play Sound): Emphasize scene transitions such as disguise or growth
- Change Item (Change Parameter): Linking with equipment changes makes the story expression realistic
- Assign Variable: Save the current sprite type to a variable to use in branch checks
- Play Sound: Sound effects for transformation and transparency
Related events
- Change Object: An event content that changes the sprites of other objects on the map (NPCs/enemies). Use this event content for the hero only, and Change Object for everything else
- Change Function: Toggle operation input on/off (menu display, etc.). This is for function switching, not appearance change
Related pages
- Walking character creation (Object Generator) — How to create walking character scenes (
data/objects/*.tscn) - Change Object — Sprite change for other objects
Notes and constraints
Supported scene structures
The .tscn files that can be specified as walking characters have one of the following structures:
- New format: Root RigidBody2D + child AnimatedSprite2D
- Old format: Standalone root AnimatedSprite2D
Specifying a scene with any other structure may result in the sprite not being displayed correctly. For compatibility of existing scenes, it is safe to check and regenerate with Object Generator.
Behavior when empty path is specified
Setting the path empty makes the hero disappear from the screen. This is a tool specification (intentionally provided as a "temporarily hide the hero" use case), but be careful not to leave it empty by mistake. If you choose from the file select button, it will not be empty.
Mechanism to prevent multiple walking characters from remaining
Even if this event content is called consecutively, the existing hero sprite is always deleted before adding a new sprite, so multiple heroes will not be displayed overlapping on the screen.
