With Tek

How to make a character move in a game

To make a character move in a game, the game keeps the character's position as two numbers, x for how far across and y for how far up, and changes those numbers when a button is pressed, after checking the next square for a wall. In this course your kid draws a numbered grid, makes four arrow cards as buttons, adds walls and edges the hero can't pass, and then adds speed and a jump. A grown-up plays the game engine, the part of a game that moves things and keeps the numbers. Tek hosts four short films for kids 6 to 13, and the whole course ends on paper, with no screen. Your kid ends with a paper game where a hero moves, stops at walls, goes fast, and jumps a gap. Plan about 3 minutes of films and 30–45 minutes of play. On Kubrio, all four films and the quiz are free, with no account.

All 4 lessons and the quiz are free on this page. Your kid doesn't need an account. See every lesson

Liked this lesson?

There's a whole world of this.

In Kubrio Worlds your kid explores places, asks the people who made them anything, and makes their own things. You set the screen time.

3 days free, then $49 $19 a month per kid.

▶ 1:45 tour

What your kid makes

Your kid ends with a paper game on a numbered grid: a hero with an x and a y, four arrow cards, walls and edges the hero can't pass, a speed card, a gap, and a jump card. It's the same logic a game engine runs every time a player presses a button.

Ages
6 to 13
Time
4 films, about 3 minutes, then 30–45 minutes of play
You need
Graph paper and a pencil, a counter or a coin for the hero, paper for the arrow, speed, and jump cards, a grown-up to play the game engine
Host
Tek

The 4 lessons

  1. Lesson 1. Two numbers

    A game knows where the hero is with two numbers: x is how far across, and y is how far up. Move the hero, and the numbers change.

    1. Draw a grid six squares across and five squares up
    2. Number the squares along the bottom and up the side
    3. Put your hero down and write its x and y in a box

    Where: Paper

  2. Lesson 2. Press and move

    Arrow cards are the buttons. Right adds 1 to x, left takes 1 away, up adds 1 to y, and down takes 1 away. The engine changes the numbers first, then moves the counter to match.

    1. Make four arrow cards: up, down, left, and right
    2. A grown-up plays the game engine
    3. Press a card, and the engine changes x or y

    Where: Paper

  3. Lesson 3. Walls and edges

    Before every move, the engine checks the next square. A wall means the hero stays put and the numbers don't change, and the edge of the grid works like a wall.

    1. Shade three squares dark for walls
    2. Press your arrow cards
    3. The engine checks the next square before every move

    Where: Paper

  4. Lesson 4. Speed and jumps

    Speed is how many squares one press moves. A jump moves two squares, right over a gap, and the engine checks only where the hero lands.

    1. Make a speed card that says 2
    2. Draw a gap the hero can't walk into
    3. Make a jump card, and play

    Where: Paper

Take the quiz

Tek asks 3 questions about the films. Get 2 right and you finish the course.

Transcript

Lesson 1: Two numbers

Hi, I'm Tek! Today you find out how a game moves a character. On paper!

Draw a grid on graph paper. Six squares across, five squares up. Number them.

Put a counter in one square. That's your hero. But where is it? The game needs two numbers.

X is how far across. Y is how far up. This hero is at x two, y three!

Write them in a box next to the grid. The game always keeps these two numbers.

Move the hero, and the numbers change. Now it's at x four, y three.

Your turn. Draw your grid and number it. Put your hero down, and write its x and y.

Lesson 2: Press and move

Now let's make your hero move! In a game, you press a button, and the hero goes one square.

Make four arrow cards. Up, down, left, right. Those are your buttons.

A grown-up plays the game engine. That's the part of a game that moves things, and keeps the numbers.

Show the right card. The engine adds one to x. Two becomes three!

Left takes one away from x. Up adds one to y. Down takes one away from y.

The engine changes the numbers first. Then it moves the counter to match.

Your turn. Make four arrow cards. Press one, and the engine changes x or y.

Lesson 3: Walls and edges

Games have walls! Shade three squares dark. Those squares are blocked.

Here's the trick. Before the hero moves, the engine checks the next square.

Is it a wall? Then the hero stays put. Bump! The numbers don't change at all.

Is it free? Then the hero moves, and the numbers change. Check first, then move!

Now the edge. The hero is at x six. Press right. But there's no x seven!

So the edge works like a wall. The hero always stays inside the grid.

Your turn. Shade some walls. Press your cards, and the engine checks before every move.

Lesson 4: Speed and jumps

Your hero can walk. Now let's make it fast, and let it jump!

Speed is how many squares one press moves. Make a speed card that says two.

Now one press of right adds two to x. Zoom! The engine still checks both squares.

Next, draw a gap. It's a hole in the floor that the hero can't walk into.

Make a jump card. A jump moves two squares, and flies right over the gap!

The engine only checks where the hero lands. Free? Land there. A wall? No jump.

Your turn. Add a speed card, a gap, and a jump card. Play it. You made a character move!

Free guides to practise with

Questions parents ask

How does a game make a character move?

The game stores the character's position as two numbers, x and y. When a button is pressed, the game works out the next square, checks it for a wall, and only then changes the numbers and draws the character in the new place. The course acts out each step on paper.

Why does y count up from the bottom?

The course counts y up from the bottom, like a graph. Some game tools count y down from the top instead. Either way works, as long as the whole game uses one direction.

Does my kid need a computer?

No. The films play on this page, and the game happens on graph paper with a counter and paper cards. A grown-up plays the game engine. The course ends on paper, with no screen.

See every course

From the makers of these free courses

Curious, not hooked.

Kids explore worlds, ask the people who made them anything, and make their own things. 20 minutes a day by default, and you can change it.

3 days free, then $49 $19 a month per kid.

  • 13worlds open
  • 500+questions answered
  • 20 mina day, set by you