In the last step, you should have opened the starter project and signed in. If you haven’tdone this yet, pause this video and go back to the previous step.
In this video, you will learn how to use the "go to" and "glide" movement blocks to movethe sprite around the stage. Watch this video to learn how to do it, then try it on yourown. The starter project already contains the spriteyou'll use to create the fashion walk. You'll have time later during the club to changethe sprite if you would like. For the fashion walk, the sprite needs to walk onstage, pause,then walk offstage, 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 blocks you add tothe scripts area 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 stage a sprite shouldglide. Scratch uses 2 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 coordinatecontrols its vertical, or up and down, location. To set the x and y positions in the glideblock, drag the sprite to the position where you want it to go, and the blocks in the blocksmenu 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 valueswill not automatically update.
To test, move the sprite and double click on the “glide” block to see the spriteglide to the position you selected.
Next, drag the sprite to the place on the stage where it should exit after finishingthe fashion walk. Drag out another “glide” block, and snap it below the first one. Testit out.
Great! The sprite glides to the two positions that you chose.
Now, it’s your turn: Drag the sprite to the center of the stage.
Drag a “glide” block into the scripts area.
Drag the sprite to the right of the stage. Snap a second “glide” block into the first.
Click the green “next” arrow on this page to watch the next videoIn the next video, you'll learn how to set the sprite’s starting position.
If you need help, ask your neighbor, or get your Guru's attention.
Once you’ve completed this step, return to this tab, and click the green “next”arrow to move on to the next video.