LiminaliaLiminalia
How-to: Show a face window

Show a face window

Open in Claude (new tab)
On this page

The face window shows the face of the speaking character beside the message window. Even in scenes without sprites, players can tell who is speaking.

The examples on this page use the English sample story, “Waiting for Stars” (choose “A sample story” and English in New Project, or run lim new --lang en; the characters are Akari and Sou).

The face window. In a scene with no sprites, the face of Akari, who is speaking, appears.

To show the face window, decide which part of the image to crop for the face, and turn on the face window in the game settings.

Set the face area

  1. Click “Characters” at the top of the screen, and choose a character from the list on the left.
  2. Drag the round preview under “Face position” so the face is in the middle, and adjust the size with the “Size” slider (or the mouse wheel).
  3. Check “Also use for the face window in the game.”
Face position. Fit the area and use it for the face window in the game too.

When it’s checked, the area of the preview is saved as face in the sprite set in cast.json, and the game’s face window crops that area from the sprite. Moving the preview while it’s checked changes the area in the game too. Every variant of the same sprite set is cropped from this area, so when you change the expression, the face window’s expression changes too. Characters without a face area don’t get a face window.

If you want to prepare the face as a separate image, you can also write an image path in face of each variant in cast.json.

Show the face window

  1. Open “Game settings” at the top, and under “Face window,” choose when to show it in “Show.”
  2. In “Position,” choose whether it appears to the left or right of the message window.
The face window in the game settings. Once it's shown, choose its position.
ShowWhen the face window appears
AlwaysWhenever the speaking character has a face area
Only without a spriteOnly when the speaking character’s sprite isn’t on screen

“Width” and “Height” change the size of the face window (180px by default). It doesn’t appear for narration, or while vertical text, NVL or speech balloons are in use.

Choose the expression

While the speaking character’s sprite is on screen, the face window uses the expression of that sprite. For a character whose sprite isn’t shown, choose the expression with a part.

  1. Type “face window” in the search box at the top of the parts panel.
  2. Select the line just before the dialogue where the expression should change, and double-click “Face window” in the results.
  3. In the panel on the right, set who to “Akari,” and click “smile” in the faces of variant.
The Face window part. Choose who and variant.
Akari's face window now shows a smile.

The expression you choose lasts until you change it again. If you’ve never chosen one, the face of the base variant is used, and after a sprite is hidden, the face window keeps the expression the sprite had before it was hidden.

In code

@bg hill_night.webp
A familiar voice came from the bottom of the hill.
Akari "Sou! Are you still up there?"
Sou "Yeah. Come on up."
@face Akari smile
Akari "Okay, I'm coming!"

The game settings are saved in ui of liminalia.json as "face": { "show": "offstage", "side": "left" }. The full list of parameters is in @face.

Commands used on this page

@bg@face