In this video, you will learn
how to use the go-to and glide movement blocks
to move the sprite around the stage.
The starter project already contains
the sprite you'll use to create the fashion walk.
You'll have time later during the video
to change the sprite if you would like.
For the fashion walk,
the sprite needs to walk on stage,
pause, then walk off stage,
which means you need to add movement blocks
to the code for the sprite.
First, click on the sprite to select it.
When a sprite is selected,
all the blocks you add will apply to that sprite.
Next, click on the motion menu.
Use a glide block to make the sprite
move across the stage.
Glide blocks use coordinates to tell the computer
where on the state a sprite should glide.
Scratch uses two coordinates, X and Y,
to determine the location of a sprite.
The X coordinate controls
the sprite's horizontal, or left-to-right, location.
The Y coordinate controls
its vertical, or up-and-down, location.
To set the X and Y positions in the glide block,
drag the sprite to the position where you want it to go.
The blocks in the blocks menu
will automatically update to the sprite's position.
Then, drag out a glide block.
Now that the block is out of the blocks menu,
its values will not automatically update.
To test, move the sprite and click the glide block
to see the sprite glide to the position you selected.
Next, drag the sprite
to the place on the stage
where it should exit after finishing the fashion walk.
Drag out another glide block
and snap it below the first one.
Test it out!
Great!
The sprite glides to the two positions you chose.
Now it's your turn.
Drag the sprite to the center of the stage.
Drag a glide block into the script's area.
Drag the sprite to the right of the stage.
Snap a second glide block into the first.
In the next video, you'll learn
how to set the sprite's starting position.
Once you've completed this step,
return to this tab and click the green next arrow
to move on to the next video.