1 00:00:00,390 --> 00:00:02,730 in this example we'll be working with 2 00:00:02,730 --> 00:00:06,960 variables. Variables are containers where useful information 3 00:00:06,960 --> 00:00:07,890 can be saved 4 00:00:08,430 --> 00:00:10,110 to get started we need to create 5 00:00:10,110 --> 00:00:13,020 different variables the first information we want 6 00:00:13,020 --> 00:00:14,850 to find out is the name so 7 00:00:14,850 --> 00:00:16,980 we can call this variable userName 8 00:00:17,190 --> 00:00:18,480 you must make sure you don't use 9 00:00:18,480 --> 00:00:20,970 any spaces the next one to find 10 00:00:20,970 --> 00:00:22,890 out is user's age so we can 11 00:00:22,890 --> 00:00:25,890 call this userAge and finally for 12 00:00:25,890 --> 00:00:28,200 the address we can call it 13 00:00:28,230 --> 00:00:29,560 userAddress 14 00:00:30,030 --> 00:00:31,620 you can set the information for the 15 00:00:31,620 --> 00:00:34,440 variables or you can ask for information 16 00:00:34,620 --> 00:00:36,120 in this example we are going to 17 00:00:36,120 --> 00:00:38,760 ask for the information the first we 18 00:00:38,760 --> 00:00:41,880 need to choose set userName to set 19 00:00:41,910 --> 00:00:47,130 userAge to and set userAddress yo 20 00:00:52,980 --> 00:00:54,750 next go to sensing 21 00:00:57,000 --> 00:01:00,450 and choose ask and wait this needs 22 00:01:00,450 --> 00:01:02,670 to go above the user name 23 00:01:04,319 --> 00:01:06,360 as we want the user to answer 24 00:01:07,080 --> 00:01:08,850 we next choose answer 25 00:01:10,500 --> 00:01:12,870 so set username to answer 26 00:01:14,880 --> 00:01:18,870 repeat these steps for user age and 27 00:01:19,140 --> 00:01:22,260 user address and write in the correct 28 00:01:22,260 --> 00:01:23,130 questions 29 00:01:24,420 --> 00:01:27,660 for example how old are you 30 00:01:31,470 --> 00:01:33,480 and where do you live 31 00:01:38,430 --> 00:01:41,040 after the user has given the information 32 00:01:41,100 --> 00:01:43,140 we want to repeat the information 33 00:01:44,190 --> 00:01:47,640 so next we need the sprite say 34 00:01:47,730 --> 00:01:49,170 for two seconds 35 00:01:57,960 --> 00:02:00,330 we need to repeat it three times 36 00:02:00,510 --> 00:02:02,640 as we have three different pieces of 37 00:02:02,640 --> 00:02:03,570 information 38 00:02:05,280 --> 00:02:08,759 and then we need to add username 39 00:02:08,850 --> 00:02:11,850 user age and user address so say 40 00:02:11,850 --> 00:02:15,120 username say user age and say user 41 00:02:15,120 --> 00:02:18,060 address this allows the user to see 42 00:02:18,060 --> 00:02:19,980 if they have given the right information 43 00:02:21,990 --> 00:02:24,300 at the end you can add stop 44 00:02:24,360 --> 00:02:25,440 all scripts 45 00:02:27,540 --> 00:02:29,550 this can be found in control 46 00:02:46,170 --> 00:02:49,080 here you can see that the sprite 47 00:02:49,140 --> 00:02:52,770 is asking for the information and the 48 00:02:52,770 --> 00:02:55,710 user needs to type it in once 49 00:02:55,710 --> 00:02:58,620 the information has been given the sprite 50 00:02:58,650 --> 00:03:00,120 repeats the information