WEBVTT

00:00.000 --> 00:11.920
Welcome to the video 2 of making your sprite fly around the stage.

00:11.920 --> 00:15.120
Let's now go to the motion category here.

00:15.120 --> 00:18.240
These block control the movement of your sprite.

00:18.240 --> 00:23.040
Grab a glide one second to random position block, and snap it right underneath your events

00:23.040 --> 00:25.360
block in the code area.

00:25.360 --> 00:29.760
This motion block will have your sprite glide at a steady pace to a random position

00:29.760 --> 00:32.480
on the stage for one second.

00:32.480 --> 00:34.240
Let's test this out.

00:34.240 --> 00:38.760
When I click this paste key on my keyboard, my sprite glides to a random position for

00:38.760 --> 00:40.520
one second.

00:40.520 --> 00:45.960
If I hold my finger down on the space key, my parrots sprite continuously moves to random

00:45.960 --> 00:51.400
positions for one second, and won't stop until I take my finger off the keyboard.

00:51.400 --> 00:55.600
The first white bubble in this motion block is a number input.

00:55.600 --> 00:59.240
This is where you can change the number of seconds that you want your sprite to glide

00:59.240 --> 01:00.640
for.

01:00.640 --> 01:05.960
If you make this number larger, like 8 seconds, for example, our sprite will move much

01:05.960 --> 01:07.880
more slowly.

01:07.880 --> 01:12.640
This is because it's taking 8 seconds to glide to that random position.

01:12.640 --> 01:18.320
Now if I change this number to a smaller number like 0.2 for example, and press the space

01:18.320 --> 01:22.560
key, you'll see that the sprite moves much more quickly because it's gliding for

01:22.560 --> 01:24.240
less seconds.

01:24.240 --> 01:25.160
Thanks for watching!

