Lesson 1 of 0
In Progress

Motion in X and Y axis

Motion X & Y Axis
SCRATCH PROJECT

Motion X & Y axis

In ScratchJr, we can move characters (called sprites) across the screen using the X and Y axis. The X axis goes left and right, and the Y axis goes up and down.

When we use motion blocks, we tell the sprite how many steps to move in each direction. For example, moving 10 steps on the X axis makes the sprite go right, and moving 10 steps on the Y axis makes it go up. This helps us control where our sprite goes—like making it walk, jump, or fly across the screen.

1. Open ScratchJr

  • Tap the ScratchJr app on your tablet or computer.
  • Start a new project by clicking the home icon, then the plus (+) button.
Open ScratchJr

2. Choose Your Sprite

  • Tap the sprite on the screen to select it.
  • To change it, tap the blue person icon and pick a new character (sprite).
Choose Sprite

3. Understand the Axes

  • The X axis moves the sprite left and right.
  • The Y axis moves the sprite up and down.
X and Y Axis

4. Use Start and Motion Blocks

  • Tap the yellow category and drag Green Flag Block.
  • Tap the blue block category to find motion blocks.
  • Use Move Right (→) to increase X.
  • Use Move Left (←) to decrease X.
  • Move Up (↑) to increase Y.
  • Move Down (↓) to decrease Y.
  • Snap them together like puzzle pieces to create a sequence.
Motion Blocks

5. Test Your Code

  • Tap the green flag to run your code.
  • Watch your sprite move across the screen!
Test Code