1 00:00:00,690 --> 00:00:02,610 today you're going to be learning how 2 00:00:02,610 --> 00:00:04,770 to create a dialogue between two sprites 3 00:00:04,770 --> 00:00:08,189 using the online platform scratch first we're 4 00:00:08,189 --> 00:00:10,080 going to go to create and our 5 00:00:10,080 --> 00:00:11,640 new project will be opened up 6 00:00:12,930 --> 00:00:14,760 you're already have your first sprite you 7 00:00:14,760 --> 00:00:16,920 can delete it here or you can 8 00:00:16,920 --> 00:00:18,480 keep it and then find your second 9 00:00:18,480 --> 00:00:20,460 right let's go ahead and find the 10 00:00:20,460 --> 00:00:23,190 second sprite first for the purpose of 11 00:00:23,190 --> 00:00:26,100 this dialogue i'm going to select this 12 00:00:26,100 --> 00:00:26,550 puppy 13 00:00:27,810 --> 00:00:29,610 I'm gonna position the puppy where i want 14 00:00:29,610 --> 00:00:31,770 it from the cat now i need 15 00:00:31,770 --> 00:00:34,170 to come up with a dialogue right 16 00:00:34,170 --> 00:00:37,110 down here you can select which sprite 17 00:00:37,140 --> 00:00:39,750 you want to start with when you'd 18 00:00:39,750 --> 00:00:41,880 have one sprite selected this means that 19 00:00:41,880 --> 00:00:43,470 this is the dialogue that will come 20 00:00:43,470 --> 00:00:46,140 from the sprite in order to create 21 00:00:46,140 --> 00:00:47,760 this dialogue we need a few different 22 00:00:47,760 --> 00:00:50,280 controls we're going to be using 23 00:00:50,280 --> 00:00:52,410 the looks the events and the control 24 00:00:52,410 --> 00:00:55,230 tabs first i'm going to start with 25 00:00:55,830 --> 00:00:57,990 events and i'm going to say when 26 00:00:57,990 --> 00:01:00,030 clicked next i'm going to go to 27 00:01:00,030 --> 00:01:01,980 look we're going to be using the 28 00:01:01,980 --> 00:01:05,790 say and the think options for the 29 00:01:05,790 --> 00:01:07,800 purpose of this video so i'll just 30 00:01:07,800 --> 00:01:07,920 go 31 00:01:07,920 --> 00:01:09,180 ahead and drag those out 32 00:01:10,320 --> 00:01:12,300 i will be using two says 33 00:01:13,740 --> 00:01:17,490 and then i'm going to go to 34 00:01:17,490 --> 00:01:19,470 control and we're going to be using 35 00:01:19,470 --> 00:01:21,900 this wait option a couple of times 36 00:01:22,440 --> 00:01:24,630 the wait is really important because this is 37 00:01:24,630 --> 00:01:27,540 how you time the dialogue the conversation 38 00:01:27,540 --> 00:01:28,740 between the two sprites 39 00:01:30,180 --> 00:01:31,351 so i'm going to start off with 40 00:01:31,351 --> 00:01:32,970 the cat which i had selected 41 00:01:35,790 --> 00:01:37,560 and i'm going to pull this up 42 00:01:37,560 --> 00:01:41,160 here going change the message hey pup 43 00:01:43,440 --> 00:01:44,080 how are you 44 00:01:46,470 --> 00:01:47,430 and who's going to say it for 45 00:01:47,430 --> 00:01:51,090 three seconds you can also choose to 46 00:01:51,090 --> 00:01:54,150 have a statement or have 47 00:01:54,150 --> 00:01:57,450 your sprite say something however without 48 00:01:57,450 --> 00:02:00,060 the duration option it doesn't work so 49 00:02:00,060 --> 00:02:02,130 well for a dialogue so for both 50 00:02:02,130 --> 00:02:03,630 the say and the think i'm going 51 00:02:03,630 --> 00:02:04,950 to use a duration 52 00:02:05,670 --> 00:02:08,610 just throw that back okay now he 53 00:02:08,610 --> 00:02:10,110 needs to wait for 54 00:02:10,110 --> 00:02:11,760 the puppy to respond so we're going 55 00:02:11,760 --> 00:02:12,690 to tell him to wait for three 56 00:02:12,690 --> 00:02:15,570 seconds before he speaks again after the 57 00:02:15,570 --> 00:02:17,760 puppy responds he's going to say 58 00:02:21,330 --> 00:02:23,340 he's going to say bye 59 00:02:25,200 --> 00:02:27,660 i'm kind of a caddy way haha 60 00:02:28,380 --> 00:02:31,380 and he'll say it for three seconds 61 00:02:31,410 --> 00:02:34,020 and then he going to think geez 62 00:02:34,710 --> 00:02:36,330 what a weird dog 63 00:02:39,390 --> 00:02:42,240 and that will be the dialogue for 64 00:02:42,240 --> 00:02:44,190 the part of the cat let's go 65 00:02:44,190 --> 00:02:46,740 to the dog going to go to 66 00:02:46,740 --> 00:02:51,420 events when clicked control going to select 67 00:02:51,420 --> 00:02:52,080 the wait 68 00:02:53,850 --> 00:02:57,330 and then looks so he will say 69 00:02:57,330 --> 00:03:01,560 something however when we click this what 70 00:03:01,560 --> 00:03:04,200 happens is that both sprites will begin 71 00:03:04,530 --> 00:03:06,900 the dialogue at the same time and 72 00:03:06,900 --> 00:03:08,280 we can't have that because there'd be 73 00:03:08,280 --> 00:03:10,290 overlap so what we need to do 74 00:03:10,440 --> 00:03:12,870 is put the weight right under here 75 00:03:13,140 --> 00:03:13,440 until 76 00:03:13,440 --> 00:03:14,760 while the dog that he needs to 77 00:03:14,760 --> 00:03:17,970 wait for four seconds while the cat 78 00:03:18,180 --> 00:03:18,990 says hello 79 00:03:19,710 --> 00:03:21,540 after that he can speak 80 00:03:22,710 --> 00:03:24,690 hey kitty 81 00:03:25,920 --> 00:03:27,600 good thanks 82 00:03:30,540 --> 00:03:33,480 and we can leave that more product 83 00:03:33,480 --> 00:03:34,500 to three seconds 84 00:03:35,790 --> 00:03:38,130 then we're going to go back to 85 00:03:38,130 --> 00:03:40,350 the wait and we're going to tell 86 00:03:40,350 --> 00:03:42,630 him to wait for four seconds 87 00:03:46,530 --> 00:03:48,480 then let's go ahead and drag over 88 00:03:48,480 --> 00:03:50,220 the think he is going to think 89 00:03:50,910 --> 00:03:52,020 man 90 00:03:53,040 --> 00:03:56,100 cats are so strange 91 00:03:57,240 --> 00:03:58,290 for three seconds 92 00:04:06,330 --> 00:04:09,450 and that their changes to three 93 00:04:09,450 --> 00:04:11,670 actually now let's go ahead and see 94 00:04:11,670 --> 00:04:13,740 what we created to see the dialogue 95 00:04:13,740 --> 00:04:15,270 between these two sprites i'm going to 96 00:04:15,270 --> 00:04:16,980 select this green flag 97 00:04:29,550 --> 00:04:31,350 okay and there we go that is 98 00:04:31,350 --> 00:04:33,090 the dialogue that we have we're going 99 00:04:33,090 --> 00:04:35,280 to save it 100 00:04:42,780 --> 00:04:44,850 and you are done and you have 101 00:04:44,850 --> 00:04:46,380 created your first dialogue