1 00:00:00,270 --> 00:00:02,009 in this tutorial we will learn how 2 00:00:02,009 --> 00:00:05,310 to use the stop features in control 3 00:00:05,400 --> 00:00:06,960 go and select stop 4 00:00:08,520 --> 00:00:10,830 we can change it to stop this script 5 00:00:11,250 --> 00:00:12,960 which will stop the activity of the 6 00:00:12,960 --> 00:00:15,456 script and a more general stop is 7 00:00:15,456 --> 00:00:18,090 stop all which will stop all scripts 8 00:00:18,591 --> 00:00:20,250 is the same as clicking the red 9 00:00:20,250 --> 00:00:20,730 button 10 00:00:22,410 --> 00:00:25,320 from the menu we will need if 11 00:00:26,700 --> 00:00:27,780 and forever 12 00:00:29,520 --> 00:00:31,560 and in events we will need when 13 00:00:31,800 --> 00:00:33,330 green flag clicked 14 00:00:34,590 --> 00:00:38,400 from motion we will need move steps 15 00:00:39,330 --> 00:00:40,500 and in sensing 16 00:00:41,790 --> 00:00:42,510 touching 17 00:00:46,260 --> 00:00:49,950 and in looks say hello for two 18 00:00:49,950 --> 00:00:53,400 seconds let's begin by creating the action 19 00:00:55,260 --> 00:00:58,560 we want to move our sprite regularly 20 00:00:58,680 --> 00:01:01,350 until we reach the edge so we 21 00:01:01,350 --> 00:01:03,930 change this the touching edge 22 00:01:06,210 --> 00:01:08,160 then we wanted to send a message 23 00:01:10,770 --> 00:01:13,650 for example it could say this is 24 00:01:13,650 --> 00:01:14,370 the end 25 00:01:18,690 --> 00:01:20,550 and we want to say it for 26 00:01:20,610 --> 00:01:21,630 one second 27 00:01:24,510 --> 00:01:25,950 and we want it to happen when 28 00:01:25,950 --> 00:01:28,650 the green flag is clicked and at 29 00:01:28,650 --> 00:01:30,660 the end we want it to stop 30 00:01:32,070 --> 00:01:33,690 but only for this script 31 00:01:35,970 --> 00:01:37,410 so if we click it we can 32 00:01:37,410 --> 00:01:40,170 see that the sprite moves all the 33 00:01:40,170 --> 00:01:42,480 way to the end we can change 34 00:01:42,480 --> 00:01:44,160 it to move one step to slow 35 00:01:44,160 --> 00:01:44,670 it down 36 00:02:01,680 --> 00:02:03,750 we can copy and paste it onto 37 00:02:03,750 --> 00:02:04,890 the second sprite 38 00:02:14,430 --> 00:02:14,970 so 39 00:02:16,770 --> 00:02:18,570 if we click the green flag 40 00:02:19,920 --> 00:02:21,540 both the sprites will move 41 00:02:26,130 --> 00:02:28,560 and they will only stop when they 42 00:02:28,560 --> 00:02:29,760 reach the edge 43 00:02:37,720 --> 00:02:40,800 if the cat for example has an advantage 44 00:02:40,830 --> 00:02:43,440 over script two and reaches the wall 45 00:02:43,471 --> 00:02:44,190 first 46 00:02:45,990 --> 00:02:49,320 then script will continue to move until 47 00:02:49,320 --> 00:02:51,270 they have reached the wall 48 00:02:56,010 --> 00:02:58,260 if we use stop all instead of 49 00:02:58,260 --> 00:02:59,850 stop the script 50 00:03:01,500 --> 00:03:04,710 then when the cat reaches the wall 51 00:03:07,680 --> 00:03:09,540 sprite two will also stop 52 00:03:12,240 --> 00:03:14,490 but if sprite two reaches the wall 53 00:03:14,490 --> 00:03:17,490 before the cat then the cat will 54 00:03:17,490 --> 00:03:18,690 continue to move