First Step: Step! Motion 

Quick References for all Motion blocks

move(number)steps

Make the sprite(character) move a certain number of steps in the direction it is facing.

Example: 

move(10)steps -> forward 10 steps

move(-10)steps -> backward 10 steps

Click the green flag to move forward 10 steps 

Click the cat to move backward 10 steps

turn(number)degrees

Make the sprite(character) rotate certain degrees clockwise(right) or counterclockwise(left).

Example: 

turn↩️(90)degrees -> turn 90 degrees clockwise

turn↩️(-45)degrees -> turn -45 degrees clockwise = turn 45 degrees counterclockwise

turn↪️(90)degrees -> turn 90 degrees counterclockwise

Click the green flag to start 

Press -> key to turn clockwise 90 degree

Press <- key to turn counterclockwise 15 degree

Click the red flag to stop

XY- Coordinates and Position in Scratch

In Scratch, the position is represented with x and y like two number lines or rulers📏. The center of the stage is (0,0). 

X is for ⬅️left and right➡️. The number goes bigger when things go to the ➡️right and smaller to negative when they go to the left⬅️.

Y is for ⬆️up and down⬇️. The number goes bigger when things go up⬆️and smaller to negative when they go down⬇️.

Tips: xy coordinate is the same as in math where x increases from left to right, and y increases from down to up. The sprite's coordinates are usually decided by the center of the sprite but can be modified in costume. The grey cross (shown on the left) is the point where the sprite position is calculated. It overlaps with the blue cross( center of the sprite) by default, so you need to move the sprite to see it.

XY Position visualizer

Click the green flag to start:

Click the cat to make it move to a random position.

Click the background to change the backdrop.

go to (position)

go to x:(number) y:(number)

Make the sprite appear in a certain position immediately. Can be a position available in the drop-down menu or described by xy coordinate.

Example: 

go to (random position)

go to x:118 y:90

Click the green flag to start: the apple will go to the starting position.

Click the apple to make it go to a random position.

glide(number)second to (position)

glide(number)second to x:(number) y:(number)

Make the sprite go to a certain position in certain seconds. Can be a position available in the drop-down menu or described by xy coordinate.

Example: 

glide 1 secs to (random position)

glide 1 secs  to x:-175 y:0

Click the green flag to start: the cat will take 1 second to glide to the starting position.

Click the cat to make it glide to a random position in 1 second.

point in direction(number)

point toward(object)

Make the sprite face a certain direction. Point in direction takes in a degree, while point toward will make it point to the direction of an object chosen from the drop-down menu. 

Corresponding direction degree numbers are shown as the last picture in the middle.

Example: 

point in direction (90)

point toward(mouse-pointer)

Click the green flag to start:

Click the pink arrows to make the cat face a certain direction.

Click the purple arrow to make it always face the mouse direction.

change x/y by(number)

set x/y to(number)

Make the sprite move to a certain position. Change x/y takes the number of steps to move in the corresponding direction, while set to will make it go to a certain position of that specific x/y value

Example: 

change x by (10) -> move right 10 steps

set y to (0) -> move to the point with same x but y is 0 (middle line vertically)

Click the green flag to start:

Use WASD keys to control the cat's position.

Press the space key to make it always go to the center (0, 0).

if on edge, bounce

x/y positon, direction

[if on edge, bounce] block keeps sprite on the screen. 

x/y position and direction bubbles store the current value of x, y, and the direction of a sprite. You can use these bubbles in any oval shape blank as a number. You can also check the box next to them to show these values on the screen.

Example: 

say (x position) for (1) seconds

say (direction) for (1) seconds

Click the green flag to start:

Use WASD keys and <- -> keys to move the cat to the edge of the screen.

Press the space key to make it say the current position and direction.