← Game Coding
Game Coding U1-L2 Your First Game Window

Nodes: A Number on the Screen

Every score, every health bar, every button you've ever tapped was a small piece with one job. Here's how you build with them.

Teacher Notes

Not started yet.

Lesson Goal

Students will add a Label named CountLabel and a Button named PlusButton to the Clicker scene as children of Main, set their properties in the Inspector, and explain in their own words what a node and a scene are.

Key Concepts

A node is one piece of a game with one job, such as showing text or being a button. A scene is a group of nodes saved together as a file.

A child node sits under another node in the Scene dock. Selecting Main before adding a node makes the new one a child of Main.

A property is a setting on a node, and the Inspector on the right is where properties are changed.

Where Students Get Stuck

Adding the new node while the Label is selected instead of Main, which tucks the button inside the label. The fix is to drag it up onto Main, or delete it and select Main first.

Not seeing the Font Size setting, because it is hidden under Theme Overrides and then Font Sizes. Searching the Inspector for the word size also finds it.

Expecting the button to do something. Clicking it does nothing yet, and the next two lessons are what make it work.

Checking the Work

When this lesson is done, the Scene dock should show Main at the top with two children under it, CountLabel and PlusButton, spelled and capitalized exactly that way.

Pressing F5 should open the window with a large 0 near the middle and a button underneath it. Clicking the button changes nothing yet, which is correct.

A parent can open the Scene dock and compare it to the tree shown in the last Watch It Worked.

Suggested Videos

Optional. Watch one first, then press Add to put it in the Visual Panel for a student.

Key Vocabulary

Node
One piece of a game with one job, such as showing text or being a button.
Child node
A node that sits under another node in the Scene dock.
Property
A setting on a node, such as what its text says or how big it is.
Inspector
The panel on the right of the editor where you change the properties of the selected node.
Sentence 1 of 26 Tap any sentence to start reading there
Settings

Settings

Stored on this device only. Your key stays in this browser. It is never sent to NexStudents, never shared, and never leaves your machine except to the voice provider it belongs to.

Where to get a key. Google Cloud TTS powers the built-in voices on this page and has a free monthly allowance. ElevenLabs is worth a look if you want a more natural voice and do not mind setting up an account.

Colors

Read-aloud is not available in this browser. Try Chrome or Safari.

Before You Start

The Words

The words this lesson uses. Tap a card to see what it means, then come back to them whenever a question uses one.

Part One

The Questions

0 of 0

Questions about the story you just read. Pick your answer straight off, or press Find it in the story if you would rather hunt for the sentence first.

Part Two

Vocabulary Check

0 of 0

The word cards are at the top of this page. Look back at them as often as you need, then answer.

When you finish: write the answers out in your own words — not copied word for word from the choices. Saying it your own way is the part that proves you understood it. Then use Print Answer Sheet for a one-page record of what was answered and scored.
Homework Sheet: UnavailableThere is no homework sheet for this lesson yet.