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:
| Field | Description |
|---|---|
| Base path for audios | Folder name for uploaded audio files used in this game |
| Base path for images | Folder name for uploaded image files used in this game |
| TTS engine | Which text-to-speech engine QTrobot uses for all speech (default: system default) |
| TTS language | Default language for speech |
| TTS voice | Default voice for speech |
| TTS speed | How 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:
- Type what you want QTrobot to say in the text field.
- Optionally drag a Face block from the Faces category into the face slot — QTrobot will show that expression while speaking.
- 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.