Skip to main content
Version: QTrobot V3

Create your first game

This tutorial walks you through creating and running your first game on QTrobot using QTrobot Studio. You will use the LuxAI Start Block and Show Says Act Block to make QTrobot tell a short story with facial expressions and gestures.

Prerequisites

Quick start with Visual scripting — QTrobot is on and you are logged into Studio.

Step 1. Create a new game

From the top menu, click Games → New. A blank canvas opens with no blocks on it.

Step 2. Add the Start Block

Every game must begin with a LuxAI Start Block. It is always the first block in your program — nothing runs before it, and any block not connected to it is ignored.

Find the LuxAI Start Block under the Blocks category in the left panel and drag it onto the canvas. The Start Block sets global defaults for the whole game:

FieldDescription
Base path for audiosFolder name for uploaded audio files used in this game
Base path for imagesFolder name for uploaded image files used in this game
TTS engineWhich text-to-speech engine QTrobot uses for all speech (default: system default)
TTS languageDefault language for speech
TTS voiceDefault voice for speech
TTS speedHow fast QTrobot speaks (default 0.8; lower is slower)

You can leave all fields at their defaults for now.

Step 3. Add speech and emotion blocks

Open the Blocks category and drag a Show Says Act Block below the Start Block until it snaps into place.

In that block:

  1. Type what you want QTrobot to say in the text field.
  2. Optionally drag a Face block from the Faces category into the face slot — QTrobot will show that expression while speaking.
  3. Optionally drag a Gesture block from the Gestures category into the gesture slot.

Add more Show Says Act blocks, one after another, to build up your story.

Here is an example program that tells a short story about a magic word:

Step 4. Run the game

Click the blue Play button in the top-right corner to run the game on QTrobot. You can run a game at any point while building it — no need to save first. The robot speaks each line in sequence, showing the face expressions and gestures you chose.

To stop a running game early, click the Stop button (same location as the Play button while a game is running).

Click Games → Save when you want to keep your work.

Next steps

Continue with the Q&A Game tutorial to learn how to add interactive branching with the Select block.