The After School Coding Club

Scratch Full Lesson 1: Introduction to Motion and Events Coding Blocks

Sale price Price $5.00 Regular price Unit price  per 

A step by step computer programming lesson in Scratch with an introduction to the Scratch workspace leading up to the exercise.

The precursor to any game programming is having your screen react to user input. This simple animation shows how you can code sprites to react to your button presses dynamically. The diver moves using the arrow keys (left, right, up and down), while the shark moves using the following letters:
l = left, u = up, d = down, r=right.

In this example you'll:

  • Get to know the Scratch development workspace
  • Learn about the different coding blocks (this lesson we focus on Motion and Events)
  • Understand how code responds to events such as user inputs