Skip to content

Hide Text ​

Category: Message

An event content that erases the text of a specified window. The window itself is not closed; only the text portion is emptied.

Difference between Hide Text and Hide Window

A very similar feature is Hide Window, but the behavior is different:

Event ContentWindowText
Hide Text (this event content)remains (frame stays shown)erased
Hide Windowerased (frame is closed too)erased (together with the window)

If you want to reuse the window and put different text in it, use this event content; if you want to fully close the window, use "Hide Window".

Property List ​

Item (tscn label)Input FormatDescription
NumberInteger (0-100)Number of the target window whose text will be erased

Property Details ​

Number ​

Number of the target window whose text will be erased. An integer in 0-100.

By matching the number specified beforehand with Show Window, you erase the text of that window.

Runtime Behavior ​

When this event content is executed, the following happens:

  1. The text of the window with the specified number is emptied
  2. The input-wait state is released (immediately ended if it was waiting)
  3. The "▼" (press button) animation that signals the next message also disappears
  4. The window frame itself remains (not closed)
  5. Automatically proceeds to the next event content (no wait)

When the Target Window Does Not Exist ​

If the window with the specified number is not displayed to begin with, this event content does nothing and proceeds to the next event content. There is no error.

Typical Usage Flows ​

Flow 1: Reusing a Window to Show Multiple Texts in Order ​

  1. Show Window (number 0)
  2. Show Text (number 0, Wait Input ON) ← "Welcome!"
  3. Hide Text (number 0) ← Erase only the text (window remains as is)
  4. Show Text (number 0, Wait Input ON) ← "Which class will you choose?"

The window stays open; only the text inside is swapped.

Flow 2: Erase Text Once for Staging ​

  1. Show Window (number 0)
  2. Show Text (number 0, Wait Input ON) ← "Found it!"
  3. Hide Text (number 0)
  4. Shake Window (number 0) ← Shake the empty window
  5. Show Text (number 0, Wait Input ON) ← "At last, the treasure..."

Flow 3: Combine with a Choice ​

  1. Show Window (number 0, for body)
  2. Show Text (number 0) ← "Which way to go?"
  3. Add Choice × 2 (Town / Forest)
  4. Show Selection Window
  5. Hide Text (number 0) ← After selection, erase the question text

Typical Combinations ​

This event content is used to erase only text from a window where text is already shown. For the overall picture, see the Combination Patterns.

Window Reuse Pattern ​

Flow of erasing only the text before putting the next text into the same window:

  1. Show Window (number 0)
  2. Show Text (number 0) ← first message
  3. Hide Text (this event content) (number 0) ← erase only the text
  4. Show Text (number 0) ← next message
  5. Hide Window (number 0)

Choosing between this and Hide Window ​

  • This event content: Want to erase only the text (keep the window and reuse it)
  • Hide Window: Want to close the window along with everything
Related Event ContentPurpose
Show TextPut text into a window (counterpart)
Hide WindowClose the whole window
Hide All WindowsClose all open windows at once
Show WindowShow the window itself
PageRelated Content
Event Content ListList of all event contents

Notes ​

The Window Itself is Not Closed ​

This event content only erases the text. The window frame remains on the screen as is. If you want to erase the window too, use Hide Window.

No Error Even if the Target Window Does Not Exist ​

Even if the window with the specified number is not shown, this event content does not raise an error and proceeds to the next event content. Safe to use for "erase just in case" purposes.

Input Wait is Released ​

If this event content is executed during text display (not usually expected), the input-wait state is released.