How-to

Ask the player to type something

Use an Input card to let the player type an answer, such as their name, and keep it in a text tag.

Before you start

  • Make a value tag to hold the answer, with Tag Type set to Text, and give it to the adventure: Value tags, Adventure details › Tags.
  • Open the text event where the question goes.

Steps

  1. Drag Input from the Add panel onto the canvas. A card called Input appears, selected.

  2. Press Enter, type the question, such as What's your name, stranger?, then press Esc.

  3. In the inspector, click Select Tag Storage. In the Pick target by logic window, click Adventure, then Tags, then your tag, then Save.

  4. Click the In Game Label box and type a hint for the empty field, such as Your name.

    The Input card's inspector: Input Type, Character limit, In Game Label reading Your name, and Target = Adventure Tag 'Player name'
  5. Lead the player to the card. Select the card before it and click its On Tap Logic row. If the Logic List window has a Go To line already, remove it with ✕. Click Add; in the Result window, next to Outcomes, click Add; then click Navigation, Go To Input and Input. Click Save in each window.

  6. Lead the player on. Select the Input card, click its On Submit Logic row, and add a line the same way: Navigation, then Go To Text or Go To Choices, then the next card.

Check it worked

Under Select Tag Storage, the inspector reads Target = Adventure Tag and your tag's name.

Play-test: the question shows with a field under it, and the field shows your hint while it's empty. Click the field, type an answer and press Enter: the next card follows, and the tag holds the answer. To show it in a later line, see Show a tag's value in a line.

Play mode: What's your name, stranger?, Mara typed in the field, then Where will you go, Mara?

Good to know

  • Input Type and Character limit narrow what the player can type.

See also

Checked against main 9bb38dc, 2026-12-03Report a problem with this page