18. A first look at text entry
Add Text Box when the player should type into the interface. Its starting contents are edited through Text & Content; its input behavior is under Type Settings.
1. Add a Text Box, give it a useful ID and make it wide enough for the expected answer.
2. Open Type Settings and enter a Placeholder, such as Type a puzzle answer...
3. Choose single-line or Multiline according to the kind of input.
4. For a single-line parser box, enable Run Text Parser Command When Enter Is Pressed only when your parser is configured.
5. Decide whether Enter should clear the text and return focus to the box. Save and test in gameplay.
Figure 31. Text Box settings control the entry behavior. Placeholder is guidance shown while the box is empty.
Placeholder text is not an answer the player has entered. A normal text box also does not become a global variable simply because you gave it an ID. Connect the intended game logic explicitly.
Focused text entry blocks game hotkeys, so typing letters such as I or J should not open inventory or journal windows. Test focus on the target devices, including the on-screen keyboard if you support touch input.
Password/Cipher Mode provides visual masking and character replacement options. Those deserve their own input/puzzle tutorial; masking alone should not be treated as secure storage or encryption.
