WEBVTT

00:00.000 --> 00:20.920
Today we will take you through the steps of making your sprite move up and down using

00:20.920 --> 00:23.240
the arrow keys on your keyboard.

00:23.240 --> 00:26.040
This exercise is divided into two videos.

00:26.040 --> 00:28.720
Let's begin with video one.

00:28.720 --> 00:32.880
To start, choose a backdrop for your project and a sprite that you want to code to make

00:32.880 --> 00:35.800
it move up and down on the stage.

00:35.800 --> 00:40.400
If you need help with how to choose a sprite or a backdrop, see the deleting a sprite,

00:40.400 --> 00:44.960
adding a sprite, and adding a backdrop video for more information.

00:44.960 --> 00:48.520
Let's start by setting up a position of your sprite.

00:48.520 --> 00:52.200
Click and drag your sprite where you want it to go on your stage.

00:52.200 --> 00:56.440
So for this part, I'm going to put my sprite on top of the table.

00:56.480 --> 01:00.880
You will notice once you click and drag your sprite that your x and y-go ordinates in

01:00.880 --> 01:03.560
the sprite's pane will update.

01:03.560 --> 01:07.880
Next click and drag go and green flag clicked block from the events category in the block

01:07.880 --> 01:10.560
palette onto your code area.

01:10.560 --> 01:16.080
Next click and drag go to x, y-go ordinates block from the motion category in the block

01:16.080 --> 01:19.080
palette on the code area.

01:19.080 --> 01:23.880
This block will tell your sprite where to begin on the stage when you run your code.

01:23.880 --> 01:28.120
You will notice that the x-go ordinate and the y-go ordinate inside the block match

01:28.120 --> 01:33.040
the x-go ordinate and y-go ordinate of your sprite in the sprite's pane.

01:33.040 --> 01:35.120
Please continue to video too.

01:35.120 --> 01:36.120
Thanks for watching!

