Give a sprite a velocity, so the game engine keeps it moving by itself until something changes it.
A car in a racing game, a cloud drifting past, a ball in pong: none of them is pushed by hand every frame. The game is told a speed, and keeps them moving.
The plane moved only while you held a key. Many things in a game move with nobody pressing anything: clouds, cars, enemies. They have a velocity: a speed across (vx) and down (vy), in pixels per second. A minus sign means the other way: a vx of −30 moves left, and a vy of −20 moves up. The game engine moves the sprite a little every frame (one redraw of the screen, about 30 times a second).
Make your prediction first. Help opens once you've locked it in.

scene.setBackgroundColor(9)
let ball = sprites.create(img`
. 2 2 .
2 2 2 2
2 2 2 2
. 2 2 .
`, SpriteKind.Player)
ball.setPosition(20, 60)
ball.setVelocity(50, 0)
There is no loop here: the blocks in on start run once. Lock in what you think the ball will do.
Watch the ball. Press the restart button under the simulator to see it again.

scene.setBackgroundColor(9)
let ball = sprites.create(img`
. 2 2 .
2 2 2 2
2 2 2 2
. 2 2 .
`, SpriteKind.Player)
ball.setPosition(20, 60)
ball.setVelocity(50, 0)
Watch the cloud drift and bounce.

scene.setBackgroundColor(9)
let cloud = sprites.create(img`
. . . 1 1 . . . . .
. 1 1 1 1 1 . . . .
1 1 1 1 1 1 1 1 1 .
1 1 1 1 1 1 1 1 1 1
. 1 1 1 1 1 1 1 1 .
`, SpriteKind.Player)
cloud.setPosition(80, 30)
cloud.setVelocity(30, 0)
cloud.setBounceOnWall(true)
Leo's event:

controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
rocket.vx = 30
})
Match each block with what it does to a sprite.
The cloud starts at x 80 with a velocity of 30 across. After 2 seconds, how many pixels has it moved?
Give the cloud a speed down of 20 as well as 30 across. Watch it bounce off every wall.
Before a hint: what kind of stuck is this? Try a strategy first
The second number in set velocity is the speed down. Make it 20.
Make B (enter on the keyboard) stop the cloud.
Before a hint: what kind of stuck is this? Try a strategy first
Drag in on B button pressed from Controller.
Inside it: set cloud velocity to 0, 0.
Make the cloud drift at a slant: 30 across and 20 down, so it bounces off every wall.
This ticks by itself when your blocks do what is asked.
Make B stop the cloud.
This ticks by itself when your blocks do what is asked.

scene.setBackgroundColor(15)
let star = sprites.create(img`
. 5 .
5 5 5
. 5 .
`, SpriteKind.Player)
star.setPosition(150, 20)
Make a sky game:
Try to fly through the cloud. (Nothing happens yet: next lesson sprites notice when they touch.)
Before a hint: what kind of stuck is this? Try a strategy first
Plane: move with buttons (Controller) and set stay in screen (Sprites).
Cloud: a new sprite with its own name, then set velocity and set bounce on wall (both in Sprites).
Give the cloud a velocity down as well as across, so it drifts at a slant and bounces off every wall.
A plane the player flies that stays on the screen, and a cloud with a velocity that bounces off the walls.
This ticks by itself when your blocks do what is asked.
This factory belt carries boxes to the right, and the worker moves along the floor. Make the belt run twice as fast, add a third box, then make A stop the belt by setting each box's vx to 0.
Lesson done. You've finished every step you need.
Students give sprites a velocity, and see that the engine keeps a sprite moving every frame until something changes it, while setting a position moves it once. About 40 minutes.
Open the teacher guide: answers, solutions, slides and a worksheet.
A position (x, y) is where a sprite is now. Setting it moves the sprite once. A velocity (vx across, vy down) is a speed in pixels per second: the game engine moves the sprite a little every frame (about 30 a second), and keeps doing it until something changes the velocity. So set velocity to 50, 0 does not mean "move 50 pixels"; it means "keep moving right at 50 pixels a second", off the edge if nothing stops it.
Position versus velocity: one sets where a sprite is, the other how it keeps moving. Ask which one the engine changes every frame.
Stretch: Give the cloud a velocity that changes on A (faster) and B (stop), and add a second cloud drifting the other way.
Support: Give students the cloud sprite already made, and ask them to add only set velocity and set bounce on wall.
Next lesson sprites notice each other: an overlap event runs when the plane touches a cloud or a coin. Class idea: measure a sprite's speed with a stopwatch.