[MUSIC] In this example, we're going to develop a little quiz game with a cat sprite and four frog sprites. These three frog sprites, they will say out an equation. And the Leader frog will check for the answer. if the answer is correct, we will make the equation more difficult. On the other hand, if the answer is wrong, we will make the equation easier. In this example, we need to create a few variables. We will need to create the Slot 1 and Slot 2 variables to store the two numbers in the equation. And we will also need the max and min variables to store the range of numbers that we will generate for the equation. We also need the answer variable to store the answer entered by the player. But we don't need to make this variable in the data because the answer variable will be automatically created after we ask the question. We will need three backdrops for this quiz game. Initially, we will use the white backdrop. When we show a more difficult question, we switch to the red backdrop. And when we show an easier question, we will use the blue backdrop. For the Leader sprite, we want to make it point to the left-hand side and use flip, instead of rotate, for rotation style. Now, I will talk about the code blocks that we need for this little quiz game. [MUSIC] These are the blocks that we need for the cat. When the cat receive the next message, we can keep moving it toward the right-hand side until it touches the edge. And when the cats receive the ready message, we are going to teleport the cat to the left-hand side, and then we're going to keep moving it to the right-hand side until x position is bigger than -100, which is here. For Frog1, when it receives the ready message, we're going to generate a random number between the max and min range and then store it under the Slot 1 variable. And then we're going to say out the number that we have stored under the Slot 1 variable. And when it receive the next message, we're going to say out nothing. For Frog2, it's going to say out plus when it receive the ready message, and it's going to say out nothing when it receive the next message. For Frog3, it's going to be similar to Frog1. When it receive the ready message, it's going to generate a random number and then say out the random number. When it receive the next message, it's going to say out nothing. For the Leader, when we click on the green flag, you may switch the backdrop to start, and then broadcast the ready message. And then we set the max and min variables to 8 and 3. When the Leader receive the ready message, it's going to wait for 1 second and then ask the question equals and wait for the answer. If the answer is equal to Slot 1 plus Slot 2, that means the answer is correct. Leader is going to say out that's right, and then we're going to make the next question more difficult by increasing the values that we have stored under the max and min variables. Otherwise, if the answer is wrong, we're going to have the Leader say out the correct answer, which is Slot 1 plus Slot 2. And then we're going to make the next question easier by decreasing the values that we have stored and the max and min variables. If min becomes negative after the update, I'm going to set min to 1 and max to 6, just to make sure that max and min, they are always positive. And then we're going to broadcast the next message and then wait for the other sprites to finish their actions for the next message. After all the other sprites they have finished their receive next message routine. If the answer is correct, I'm going to switch to the difficult backdrop. Otherwise we use the easy backdrop. Finally, we broadcast the ready message and then start the next question. And this is how the game is going to work. If the answer is correct, we're going to see a more difficult question. [MUSIC] Otherwise, if the answer is wrong, we're going to see an easier question. [MUSIC]