WEBVTT

00:00.000 --> 00:13.560
Welcome to the video too of animating your sprite by changing its costumes.

00:13.560 --> 00:17.360
So now I'm going to walk you through the steps to make the dragon look like it's animated

00:17.360 --> 00:24.160
by switching through his costumes of costume A and then costume C where it breeds fire.

00:24.160 --> 00:28.240
We're going to start by going to the events category here and choosing a one this sprite

00:28.240 --> 00:31.960
clicked block, drag it over into your code area.

00:31.960 --> 00:36.960
Now we're going to go to the looks category here and grab a sweatsh costume to block,

00:36.960 --> 00:41.600
click the drop down menu and pick the costume that you wish your sprite to change to and click

00:41.600 --> 00:42.600
on it.

00:42.600 --> 00:45.760
I'm going to choose drag and see.

00:45.760 --> 00:51.440
Next we're going to go to the control category here and choose a weight one second block.

00:51.440 --> 00:56.200
Drag this onto your code area and attach it under the switch costume too.

00:56.200 --> 00:59.880
Now this block will have your sprite weight however many seconds you'd like before it

00:59.880 --> 01:02.600
switches back to a different costume.

01:02.600 --> 01:08.160
I'm going to change this to 0.3 because I like it to switch quickly.

01:08.160 --> 01:12.800
Go to the looks category and grab another sweatsh costumes too and snap it right underneath

01:12.800 --> 01:17.240
the weight block and then click the drop down menu and choose a different costume from

01:17.240 --> 01:18.960
the one above.

01:18.960 --> 01:23.560
So since I have drag and see in this top sweatsh costumes to block, I'm going to switch this

01:23.560 --> 01:25.560
one to drag and A.

01:25.600 --> 01:30.000
Now my code script says when I click on the drag and sprite, we'll first switch to costume

01:30.000 --> 01:36.320
drag and see, weight 0.3 seconds and then we'll switch to costume drag and A.

01:36.320 --> 01:40.760
Now I'm going to add another weight one second block from the control group and I'm going

01:40.760 --> 01:44.600
to change this to 0.3 as well.

01:44.600 --> 01:47.960
Now let's click on this sprite and see what it looks like.

01:47.960 --> 01:52.200
You can see that every time I click on this sprite he breeds fire.

01:52.200 --> 01:58.040
You can see that he switches to drag and see and then he switches back to drag and A.

01:58.040 --> 02:01.960
What's sprite will you animate?

02:01.960 --> 02:03.400
Thanks for watching, bye.

