NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

change y by (10) — Scratch Block Guide

📌 What you will learn

Moves the sprite vertically (positive = up, negative = down) without changing x.

What this block does

Moves the sprite vertically (positive = up, negative = down) without changing x.

Drives gravity, jumping arcs, falling items, and vertical scrolling.

  • Category: Motion Blocks
  • Key tip: For realistic platformer jumps, change y by a velocity variable rather than a fixed number.

Working Scratch example

Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.

Example using change y by (10)
  1. When green flag clicked
  2. Repeat 10
  3. Change y by 8
  4. Repeat 10
  5. Change y by -8

Try it: The sprite hops up 80 pixels and returns to its starting height.

Related block guides

Explore other blocks in the same category or return to the full English Block Dictionary.

Back to Motion Blocks See the overview and patterns for Motion Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

FAQ

When should I use "change y by (10)" in Scratch?

Drives gravity, jumping arcs, falling items, and vertical scrolling. For realistic platformer jumps, change y by a velocity variable rather than a fixed number.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.