Understand the Scratch grid

Every sprite on the Scratch stage has a position. Scratch describes that position using two numbers, written as (x, y) — for example (50, -100).

The very middle of the stage is (0, 0).

The Scratch stage grid, showing the x and y axes and their corner values

➡️ ⬅️ Left and right: x

The x number can be anywhere from -240 (the far left) to 240 (the far right).

⬆️ ⬇️ Up and down: y

The y number can be anywhere from -180 (the bottom) to 180 (the top).

Here’s the quick version:

Move a sprite… Do this
Right ➡️ increase x
Left ⬅️ decrease x
Up ⬆️ increase y
Down ⬇️ decrease y

🧱 Using x and y in your code

You’ll use x and y whenever you tell a sprite where to go. The go to x: y: block jumps a sprite straight to a position:

go to x: (50) y: (-100)

This puts the sprite a bit to the right of the middle, and below it.

You can also move a sprite a little at a time using change x by and change y by, instead of jumping straight to a position:

change x by (10)
change y by (10)

This nudges the sprite 10 steps to the right, and 10 steps up.