Pass the Ball

Sports - All-Star Passing Drill (Activity 5)

Video speed:


Program the ball sprite to move when the spacebar is pressed.


  1. Make the ball sprite move until it touches the edge of the screen using “move,” “repeat until,” and “touching edge” blocks.
  2. Give the ball sprite a starting location using the “go to” block.
  3. Make the ball sprite repeat its actions using a “forever” block.
  4. Make the ball sprite move only if the user presses the spacebar with “if” and “key pressed” blocks.


Hey, club member! Sign in to get a badge for each activity you do!