Move the Sprite Left and Right

Game Design - Platform Game (Activity 4)

Video speed:

Overview

In this video, you will program key press events to make the sprite move left and right.

Instructions

  1. Create two key-press events.
  2. Add two "change x by" blocks to make the sprite move both left and right.
  3. Add two "repeat until" blocks to make the sprite move more smoothly.
  4. For each "repeat until" block, create a condition that makes the sprite move until the key is not pressed.

X

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