WEBVTT

00:00.000 --> 00:21.600
Welcome to the video 3 of making your sprite move left and right.

00:21.600 --> 00:24.800
Now let's go to our car sprite to move to the left.

00:24.800 --> 00:29.760
Go back to the yellow events category and grab another winky space press.

00:29.760 --> 00:33.520
Tap the drop down menu and change it to the left arrow.

00:33.520 --> 00:37.760
Now we're going to go back to the blue motion category and grab another change

00:37.760 --> 00:42.160
X by block and snap it underneath the one left arrow key pressed.

00:42.160 --> 00:45.600
Now we want to change the number 10 to a 10.

00:45.600 --> 00:48.880
This means that the value of X will get smaller by 10

00:48.880 --> 00:53.280
every time we press the left arrow. Let's try this out.

00:53.280 --> 00:57.360
If I press the left arrow my car is moving to the left and the value of the

00:57.360 --> 01:01.200
X goordinate is getting smaller by 10 each time.

01:01.200 --> 01:04.560
When I press the right arrow X increases

01:04.560 --> 01:08.800
and when I press the left arrow the value of X decreases.

01:08.800 --> 01:12.800
So now I can move my sprite left and right with the arrow keys.

01:12.800 --> 01:22.800
Thanks for watching.

