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 Content | Window | Text |
|---|---|---|
| Hide Text (this event content) | remains (frame stays shown) | erased |
| Hide Window | erased (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 Format | Description |
|---|---|---|
| Number | Integer (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:
- The text of the window with the specified number is emptied
- The input-wait state is released (immediately ended if it was waiting)
- The "▼" (press button) animation that signals the next message also disappears
- The window frame itself remains (not closed)
- 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
- Show Window (number
0) - Show Text (number
0, Wait Input ON) ← "Welcome!" - Hide Text (number
0) ← Erase only the text (window remains as is) - 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
- Show Window (number
0) - Show Text (number
0, Wait Input ON) ← "Found it!" - Hide Text (number
0) - Shake Window (number
0) ← Shake the empty window - Show Text (number
0, Wait Input ON) ← "At last, the treasure..."
Flow 3: Combine with a Choice
- Show Window (number
0, for body) - Show Text (number
0) ← "Which way to go?" - Add Choice × 2 (Town / Forest)
- Show Selection Window
- 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:
- Show Window (number 0)
- Show Text (number 0) ← first message
- Hide Text (this event content) (number 0) ← erase only the text
- Show Text (number 0) ← next message
- 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 Contents
| Related Event Content | Purpose |
|---|---|
| Show Text | Put text into a window (counterpart) |
| Hide Window | Close the whole window |
| Hide All Windows | Close all open windows at once |
| Show Window | Show the window itself |
Related Pages
| Page | Related Content |
|---|---|
| Event Content List | List 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.
