1 00:00:00,050 --> 00:00:05,690 Hello, good morning boys and girls. I'm going to give you a short tutorial about 2 00:00:05,690 --> 00:00:14,810 Practical 7, the one that is the Virtual Lies. Ok, so the first thing that 3 00:00:14,810 --> 00:00:23,449 appears in your book is to create the backdrop, so we press here in a new 4 00:00:23,449 --> 00:00:31,789 backdrop from the library and we look for light for light and that's it this 5 00:00:31,789 --> 00:00:39,289 is our backdrop number two and now we need we are in book page 14 and we are 6 00:00:39,289 --> 00:00:47,490 in item number three and we want to create a star so we press here and we 7 00:00:47,490 --> 00:00:57,299 choose a sprite that is going to be a star so far is easy okay we remove the cat because we don't 8 00:00:57,299 --> 00:01:06,420 need it and the the difficult part is the new concept of the variable variable in your books 9 00:01:06,420 --> 00:01:15,359 in the book it says that you have to create the numbers box we have to create a variable we select 10 00:01:15,359 --> 00:01:21,840 the data category we don't have data category in this version we have the variable category so we 11 00:01:21,840 --> 00:01:30,079 press here in variable and we click on make a variable okay and the name of the variable 12 00:01:30,799 --> 00:01:35,040 is numbers so the name is numbers 13 00:01:35,040 --> 00:01:46,500 so we have created a variable a variable is like an empty box where n in this value 14 00:01:46,500 --> 00:01:54,280 could be any number okay is similar to our X in maths similar a like is the 15 00:01:54,280 --> 00:02:04,239 mathematics is not variable and okay now we are going to create the program and the idea 16 00:02:04,239 --> 00:02:11,039 is that when we press the star a different number is going to appear here as a virtual dice okay 17 00:02:11,680 --> 00:02:18,879 and but the number is going to be from one to six not any number any number from one to six 18 00:02:19,759 --> 00:02:28,639 so um good so we're going to start the program and the program is going to start when we click 19 00:02:28,639 --> 00:02:38,400 on the sprite so when we click on the sprite we want to now we want we go to sorry two variables 20 00:02:38,400 --> 00:02:48,159 okay we set our variable that is not my variable is the variable called number at the beginning 21 00:02:48,159 --> 00:02:56,240 numbers has to be zero but every time we click on the sprite it has to change the variable 22 00:02:56,240 --> 00:03:08,599 the value of the variable by one but it has to be a variable a random random is 23 00:03:08,599 --> 00:03:17,539 aleatorio from one to six random from one to six good and what's going to 24 00:03:17,539 --> 00:03:28,159 happen and we go to control if okay and we duplicate it because we are going to 25 00:03:28,159 --> 00:03:35,840 use it many times in fact we have six different loops in the first one okay if 26 00:03:35,840 --> 00:03:45,560 numbers is equal to one so for equal we have to go to operators if numbers in 27 00:03:45,560 --> 00:04:00,139 here in sorry in variables if numbers is equal to one then say I'm equal to one 28 00:04:00,139 --> 00:04:16,920 for example say one for two seconds or that is equal to one for two seconds by 29 00:04:16,920 --> 00:04:33,110 duplicated by duplicated so if numbers is equal to one even numbers oh I'm 30 00:04:33,110 --> 00:04:45,620 sorry if even numbers is equal to one say die is equal to one if numbers is 31 00:04:45,620 --> 00:05:01,279 equal to 2, say die is equal to 2. And if, duplicate, if numbers is equal to 3, say 32 00:05:01,279 --> 00:05:13,860 die is equal to 3 for 2 seconds. Let's see if it works. Okay, die is equal to 1. 33 00:05:13,860 --> 00:05:17,860 It doesn't tell us anything because we haven't completed the program. 34 00:05:17,860 --> 00:05:19,860 You have to complete it. 35 00:05:19,860 --> 00:05:20,860 Three. 36 00:05:20,860 --> 00:05:22,860 And that's it. 37 00:05:22,860 --> 00:05:25,860 This is just a clue to know how it works.