Simple Catch Game in Scratch using Teachable Machines

The character is controlled using the pose. It can be moved Left or Right to catch the fruit according to my body movement.
  1. Select a character and create its walking animation
  2. Controlling the Character movement
  3. Randomly dropping the fruit from top
  4. Catching the fruit and score
  5. Adding character control using Teachable Machine Posenet (for our final output)
Keyboard-controlled catch game example.
Selecting a walking sprite with animation from the Sprite pane in Scratch
Sprite costumes for animation
Use this code block to create a walking animation
The code block for controlling the character movement using arrow keys
Falling strawberry
Sensing when the strawberry touches the character (Pico Walker aka Paetoo)
The code block for sensing when strawberry touches the character. Make sure to select strawberry sprite for this code block.
Adding a variable named Score
Adding Score in the game
Select Pose Project
Training the Posenet model in TM.
Use TM blocks in code
Exclamation mark to green arrow indicates that the teachable machine model has model is loaded
Final Output!!!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store