1 00:00:00,240 --> 00:00:01,890 today we're going to be learning how 2 00:00:01,890 --> 00:00:04,410 to change the costumes of a sprite 3 00:00:04,410 --> 00:00:07,500 using the online version of scratch first 4 00:00:07,590 --> 00:00:09,030 i'll go to a new project and 5 00:00:09,030 --> 00:00:11,130 i'm going to name my new project 6 00:00:11,790 --> 00:00:13,380 sprite costumes 7 00:00:17,250 --> 00:00:18,600 then i'm going to go to file 8 00:00:18,630 --> 00:00:19,380 and save now 9 00:00:20,400 --> 00:00:21,450 as you can see i have my 10 00:00:21,450 --> 00:00:24,060 sprite it's a cat and now we're 11 00:00:24,060 --> 00:00:26,010 going to see what his costumes are 12 00:00:27,150 --> 00:00:28,980 i click on this costumes tab in 13 00:00:28,980 --> 00:00:31,020 the upper left hand corner and in 14 00:00:31,020 --> 00:00:32,549 this panel on the left i can 15 00:00:32,549 --> 00:00:34,470 see the two costumes that are currently 16 00:00:34,470 --> 00:00:36,690 assigned to this sprite so costume one 17 00:00:37,380 --> 00:00:40,140 and then costume to the costumes are 18 00:00:40,140 --> 00:00:42,840 essentially just different actions or movements that 19 00:00:42,840 --> 00:00:45,180 you want your sprite to perform in 20 00:00:45,180 --> 00:00:46,920 the case of my cat sprite i 21 00:00:46,920 --> 00:00:47,280 want him 22 00:00:47,310 --> 00:00:50,310 to perform more than two actions so 23 00:00:50,310 --> 00:00:52,080 i need to add some more costumes 24 00:00:53,130 --> 00:00:54,510 i'm going to add more costumes by 25 00:00:54,510 --> 00:00:56,580 clicking on this tab right here this 26 00:00:56,580 --> 00:00:59,220 button that says choose a costume and 27 00:00:59,220 --> 00:01:00,870 i'm going to scroll down until i 28 00:01:00,870 --> 00:01:02,670 find my cat sprite 29 00:01:04,290 --> 00:01:06,420 so i already have a and b 30 00:01:06,600 --> 00:01:08,040 next i want to add these flying 31 00:01:08,040 --> 00:01:09,900 options so when he's about to take 32 00:01:09,900 --> 00:01:11,520 off and then when he's in flight 33 00:01:12,180 --> 00:01:14,010 like this one and then i want 34 00:01:14,010 --> 00:01:15,420 to add one more costume 35 00:01:17,040 --> 00:01:18,330 and that's going to be the cat 36 00:01:18,360 --> 00:01:21,300 in flight costume so now i have 37 00:01:21,330 --> 00:01:24,120 four different costumes and you can go 38 00:01:24,120 --> 00:01:26,310 ahead and click on them all and 39 00:01:26,310 --> 00:01:28,230 view it to be the changes in 40 00:01:28,230 --> 00:01:28,950 the stage 41 00:01:33,990 --> 00:01:36,840 okay for the purpose of my 42 00:01:36,870 --> 00:01:38,940 sprite costumes i'm actually going to add 43 00:01:38,940 --> 00:01:41,490 a modification i'm going to draw a 44 00:01:41,490 --> 00:01:41,910 cape 45 00:01:42,510 --> 00:01:46,050 on the third sprite or right before 46 00:01:46,050 --> 00:01:48,000 he's about to take off into flight 47 00:01:49,470 --> 00:01:51,030 this is just to give you an 48 00:01:51,030 --> 00:01:53,670 idea of what customizations you can perform 49 00:01:53,670 --> 00:01:55,170 to your spray if you want to 50 00:01:55,170 --> 00:01:56,790 have your own personal touch 51 00:02:03,000 --> 00:02:03,420 okay 52 00:02:05,730 --> 00:02:09,030 going back to costume one can see 53 00:02:09,870 --> 00:02:13,140 the different costumes going to go back 54 00:02:13,140 --> 00:02:15,120 to costume one and then we're going 55 00:02:15,120 --> 00:02:17,190 to get ready to actually program the 56 00:02:17,195 --> 00:02:19,080 sprite so i'm going to click on 57 00:02:19,080 --> 00:02:20,880 code in the upper left hand corner 58 00:02:21,600 --> 00:02:23,700 today we'll be using the looks of 59 00:02:23,700 --> 00:02:24,720 the events and they contain 60 00:02:24,720 --> 00:02:27,060 troll tabs i always like to start 61 00:02:27,060 --> 00:02:29,130 off with events and throw over my 62 00:02:29,130 --> 00:02:31,320 when clicked next i'm going to go 63 00:02:31,320 --> 00:02:34,020 to looks and am going define the 64 00:02:34,020 --> 00:02:37,230 switch to costume box i'm going to 65 00:02:37,230 --> 00:02:39,270 pull a poll four of those over 66 00:02:39,270 --> 00:02:41,370 because we have four costumes and i'm 67 00:02:41,370 --> 00:02:42,360 going to put them in the order 68 00:02:42,360 --> 00:02:44,100 that i want them so one 69 00:02:44,940 --> 00:02:47,726 two and then it's going to be 70 00:02:47,790 --> 00:02:51,180 cat flying a and cat flying b 71 00:02:52,200 --> 00:02:53,460 if you want to make sure that 72 00:02:53,460 --> 00:02:54,930 you have the right names in order 73 00:02:54,930 --> 00:02:57,180 you can go back to costumes and 74 00:02:57,180 --> 00:02:58,770 check them out so yes they need 75 00:02:58,770 --> 00:02:59,910 b and then a 76 00:03:03,060 --> 00:03:04,710 b and a 77 00:03:06,810 --> 00:03:07,320 okay 78 00:03:08,730 --> 00:03:10,050 i'm going ahead and drag it up 79 00:03:10,050 --> 00:03:12,570 there and i'm going to click so 80 00:03:12,570 --> 00:03:14,100 as you can see we went straight 81 00:03:14,100 --> 00:03:17,910 from costume one to costume four that's 82 00:03:17,910 --> 00:03:19,230 because we have to add some wait 83 00:03:19,230 --> 00:03:21,450 time in there we're going to go 84 00:03:21,570 --> 00:03:24,630 to control and we're going to pull 85 00:03:24,630 --> 00:03:26,460 four of these wait options over 86 00:03:30,300 --> 00:03:31,590 i'm going to go ahead and leave 87 00:03:31,590 --> 00:03:33,360 them at one second each 88 00:03:35,160 --> 00:03:36,480 and then i'm going to go back 89 00:03:36,480 --> 00:03:39,720 to control and am going to take 90 00:03:39,720 --> 00:03:42,630 the forever button and we're going to 91 00:03:42,630 --> 00:03:45,270 put these in a loop so now 92 00:03:45,270 --> 00:03:47,910 when i click on this work what 93 00:03:47,910 --> 00:03:48,420 happens 94 00:03:53,220 --> 00:03:55,650 there we go there is an easier 95 00:03:55,650 --> 00:03:59,790 option that option would be to stop 96 00:03:59,790 --> 00:04:01,890 that saying that option would be to 97 00:04:01,890 --> 00:04:05,190 go to events you choose when clicked 98 00:04:05,400 --> 00:04:07,680 go to looks and instead at the 99 00:04:07,680 --> 00:04:09,567 same switch costume we're just going to 100 00:04:09,630 --> 00:04:12,210 left next costume we're going to go 101 00:04:12,210 --> 00:04:13,860 back to control we're going to put 102 00:04:13,860 --> 00:04:15,510 a weight of one second in there 103 00:04:15,990 --> 00:04:17,579 and then i'm going to select this 104 00:04:17,579 --> 00:04:19,380 forever button and put it in a 105 00:04:19,380 --> 00:04:22,230 loop now look when i click on 106 00:04:22,230 --> 00:04:22,590 this 107 00:04:26,400 --> 00:04:29,100 so same result but a lot shorter 108 00:04:29,100 --> 00:04:29,550 code