1 00:00:00,270 --> 00:00:02,160 in this tutorial we're going to be 2 00:00:02,160 --> 00:00:04,620 learning how to use the feature broadcast 3 00:00:05,910 --> 00:00:09,090 so we need to go to events 4 00:00:09,360 --> 00:00:12,480 and select podcast broadcast is a tool 5 00:00:12,480 --> 00:00:14,220 which allows the sprite to send a 6 00:00:14,220 --> 00:00:16,650 message to all the other sprites which 7 00:00:16,650 --> 00:00:18,360 can in turn start a group of 8 00:00:18,360 --> 00:00:21,030 actions there is a second version of 9 00:00:21,030 --> 00:00:23,640 broadcast which is broadcast and wait 10 00:00:24,900 --> 00:00:27,120 and finally we have this block which 11 00:00:27,120 --> 00:00:29,190 will initiate a group of actions when 12 00:00:29,190 --> 00:00:30,450 a message is received 13 00:00:32,850 --> 00:00:34,260 first of all we need to go 14 00:00:34,260 --> 00:00:37,920 to events and select repeat and then 15 00:00:37,950 --> 00:00:44,010 in motion select move steps and turn 16 00:00:44,010 --> 00:00:44,700 degrees 17 00:00:46,950 --> 00:00:49,410 from the pen we want to select 18 00:00:49,440 --> 00:00:50,220 stamp 19 00:00:52,980 --> 00:00:54,960 and we also need erase all 20 00:00:58,470 --> 00:01:00,180 and from sound who want to click 21 00:01:00,180 --> 00:01:01,260 start sound 22 00:01:03,060 --> 00:01:05,040 first of all we have created this 23 00:01:05,040 --> 00:01:07,260 group of actions that we want repeating 24 00:01:07,770 --> 00:01:09,990 we can change the numbers for example 25 00:01:09,990 --> 00:01:14,460 repeat twelve times move thirty steps turn 26 00:01:14,460 --> 00:01:15,690 thirty degrees 27 00:01:22,350 --> 00:01:23,940 if we double click on this we can 28 00:01:23,940 --> 00:01:25,170 see what happens 29 00:01:28,290 --> 00:01:29,430 an image is drawn 30 00:01:31,200 --> 00:01:32,790 now we want the option to occur 31 00:01:32,790 --> 00:01:34,590 not only for the sprite but for 32 00:01:34,590 --> 00:01:35,490 the other sprite 33 00:01:36,810 --> 00:01:38,730 so we will use the sprite to 34 00:01:38,730 --> 00:01:41,220 send a message and for example we 35 00:01:41,220 --> 00:01:42,540 will call this draw 36 00:01:46,740 --> 00:01:48,510 when we click it the word draw is 37 00:01:48,510 --> 00:01:50,436 going to be sent to everyone and 38 00:01:50,436 --> 00:01:52,320 those who are prepared to receive the word 39 00:01:52,320 --> 00:01:54,060 draw will activate 40 00:02:03,750 --> 00:02:06,030 we can copy this to the second 41 00:02:06,030 --> 00:02:06,510 sprite 42 00:02:07,710 --> 00:02:09,539 so now both the scripts will do 43 00:02:09,539 --> 00:02:11,430 the steps when they hear draw 44 00:02:20,130 --> 00:02:22,140 so if we double click on this 45 00:02:22,140 --> 00:02:24,570 within see that both scripts have acted 46 00:02:26,010 --> 00:02:28,590 another element is the forecast and then 47 00:02:28,590 --> 00:02:30,870 wait for example we can use play 48 00:02:30,870 --> 00:02:34,200 sound now as this script if we choose 49 00:02:34,200 --> 00:02:38,190 draw the activity will happen then the 50 00:02:38,190 --> 00:02:39,210 sound will play 51 00:02:41,220 --> 00:02:42,810 and here we can see it happens 52 00:03:02,160 --> 00:03:04,080 we can also add a 53 00:03:04,110 --> 00:03:06,420 wait a second which can be found 54 00:03:06,450 --> 00:03:09,780 in events to slow down the process 55 00:03:11,340 --> 00:03:12,780 we need to remember to add it 56 00:03:12,780 --> 00:03:14,130 to the second script 57 00:03:16,680 --> 00:03:18,450 now let's try it and see what 58 00:03:18,450 --> 00:03:19,110 happens