You can already train a pose model. Today you will load that model into Scratch and build a space game you steer by leaning left and right.
You will start a new project in Stretch3 and build the game step by step, testing and fixing it as you go.
Before you touch any code: how would leaning your body to one side make a rocket move across the screen?
Your pose-controlled space game has five parts:
If the rocket jitters or ignores you, it is almost always the confidence threshold or how often you are checking.
Set up a new project in Stretch3 with the TMPose2Scratch extension:
Scratch Extensions are additional sets of blocks that expand the capabilities of your Scratch projects. They allow you to:
When you add an extension to your project:
Add the Rocketship sprite to the project and then add the following code to it, to position it at the bottom centre of the stage area and shrink its size.
when green flag clicked
go to x (0) y (-150)
set size to (30) %
To add a sprite from the sprite library follow these steps:
You can use search box or the filter links (Animals, People, Fantasy etc) to locate your sprite.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.